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...
What's going on with my bounding box?
Re: What's going on with my bounding box?
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: What's going on with my bounding box?
It looks as if you draw the floor plane after the object. The bounding box is not written to the depth buffer.
Re: What's going on with my bounding box?
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? .
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? .
Re: What's going on with my bounding box?
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm