light statistics

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
Oddmonger
Posts: 24
Joined: Tue Oct 04, 2005 7:01 pm
Location: Near Paris

light statistics

Post by Oddmonger »

Hello,

I'd like to know if there's a way to display on screen light statistics.
You know, like the bounding boxes or normals on the meshes.

I tried :

Code: Select all

 light=scenemgr->addLightSceneNode(0,irr::core::vector3df(0,20,0));
 light->setDebugDataVisible(irr::scene::EDS_FULL);
but it displays absolutely nothing.

It would be very useful to display light direction, falloff , cone of light with a wireframe representation.
I don't see my light, and i like to know where it's located in my scene.

For the moment, i use cubes scattered all around the scene, and it gives me hint. But i'd like to know where the light exactly is.

Thanks!
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well that would turn on debug data for the light so you'd probably get a circle rendered showing the radius of the light...

Check the mesh viewer example for how to turn on bounding boxes/normals/skeleton rendering for nodes.
Image Image Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Currently only bounding boxes are drawn for standard lights, while directional lights also get a 3d line. It would be nice to have a billboard for the light position like in irrEdit though, using a sprite from the default font would probably be best.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply