Trouble with Octree

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
mayorandrew
Posts: 3
Joined: Sat May 14, 2011 7:32 pm

Trouble with Octree

Post by mayorandrew »

Hello!

I have some strange thing that happens when I use
irr::scene::ISceneManager::addOctreeSceneNode to create my scene node.

When I move my camera around, this node sometimes just dissappears.
This is shown on the related video:
http://www.youtube.com/watch?v=EP_fUS54Vd4

How can this be solved?
CuteAlien
Admin
Posts: 10021
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Trouble with Octree

Post by CuteAlien »

Stuff like that is hard to check without having a code-example where we can reproduce it.

If you are not scared of re-compiling the engine you can try the following:
In Octree.h change OCTREE_BOX_BASED to false and try if it works better with that setting (that has been faster anyway in all of my tests so far).
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