DebugData Color

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mmxx1
Posts: 8
Joined: Thu Nov 05, 2009 7:17 am
Location: Poland

DebugData Color

Post by mmxx1 »

Hi

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

Now function drawns it in red.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Why do you want to ?
It's just for debug purposes so it doesn't matter what it looks like...
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
mmxx1
Posts: 8
Joined: Thu Nov 05, 2009 7:17 am
Location: Poland

Post 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.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post 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().
"Whoops..."
mmxx1
Posts: 8
Joined: Thu Nov 05, 2009 7:17 am
Location: Poland

Post 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.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post 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.
"Whoops..."
Post Reply