Page 1 of 1

DebugData Color

Posted: Fri Dec 18, 2009 2:01 pm
by mmxx1
Hi

How can i change the color of boundaries drawn by
setDebugDataVisible( irr::scene::EDS_BBOX) ?

Now function drawns it in red.

Posted: Fri Dec 18, 2009 2:36 pm
by Sylence
Why do you want to ?
It's just for debug purposes so it doesn't matter what it looks like...

Posted: Fri Dec 18, 2009 2:41 pm
by mmxx1
Why ?

In my application I use it for presenting user currently selected (active) object in the scene, so I want to have a control over the color how looks selection.

In my case I don't use it for debug purposes, it's a part of functionality.

Posted: Fri Dec 18, 2009 2:46 pm
by randomMesh
You could make your own ISceneNode so you can control the rendering of the bounding box in the render() method.

Another solution would be to draw the boxes in your main render loop with driver->draw3DBox().

Posted: Fri Dec 18, 2009 2:51 pm
by mmxx1
I can't do this way because the scene nodes that I want to use with setDebugDataVisible function, are prepared for me by the graphics (the are furniture models).

So I want to know how I can do this with setDebugDataVisible function.

Posted: Fri Dec 18, 2009 2:53 pm
by randomMesh
Why can't you get the bounding box of the nodes and draw them?
This is basic Irrlicht functionality.

Other than that, you could edit the Irrlicht source and recompile. But this is just unnecessary.