What's going on with my bounding box?

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
tdkr80
Posts: 18
Joined: Thu Aug 18, 2016 10:15 am

What's going on with my bounding box?

Post by tdkr80 »

Hey, I was just wondering what I've done here and why the bounding box is showing up how it is...

I know it has something to do with the FPS camera. Because when I use the Maya camera, it doesn't show up like this...

Image
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: What's going on with my bounding box?

Post by CuteAlien »

Should be ISceneNode::setDebugDataVisible. With scene::EDS_OFF as parameter you disable it (which should be default - so look for "setDebugDataVisible" probably you enable it at some place).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: What's going on with my bounding box?

Post by mongoose7 »

It looks as if you draw the floor plane after the object. The bounding box is not written to the depth buffer.
tdkr80
Posts: 18
Joined: Thu Aug 18, 2016 10:15 am

Re: What's going on with my bounding box?

Post by tdkr80 »

Oh, well... It's not to much of an issue for now. But I will take a look.

On another note. I'm setting up lighting in my engine and the mesh doesn't want to work with me.

I've normalised the normals and then set the lighting to true, but it's still black. Any ideas? :).
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: What's going on with my bounding box?

Post by CuteAlien »

Probably distance or light-strenght. Start by adding some (not much) ambient light so you are sure to have light everywhere (scenemanager has setAmbientLight function). Also maybe experiment with different light-types (setLightData for lightscenenode), for example directional light (typically used for sun) is a little easier to set-up than point-light. You can also experiment somewhat in MaterialViewer with effects of materials+lights.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply