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.
Avalanche
Posts: 18 Joined: Tue Sep 05, 2006 7:21 am
Post
by Avalanche » Sun Sep 17, 2006 12:45 pm
i dont like to create level in bsp, but i'll like to enjoy the octree optimization, so can i apply octree on any static models?
xDan
Competition winner
Posts: 673 Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:
Post
by xDan » Sun Sep 17, 2006 3:33 pm
scene::IAnimatedMesh *amesh = smgr->getMesh("meshname.obj");
ISceneNode *myNode = smgr->addOctTreeSceneNode(amesh->getMesh(0));
It seems the model must be a single mesh.
bitplane
Admin
Posts: 3204 Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:
Post
by bitplane » Sun Sep 17, 2006 4:41 pm
the getMesh(0) means "get the first frame", not "get the first mesh buffer". so the mesh that makes up an octTreeSceneNode can have multiple mesh buffers, it just can't be an animated mesh
Avalanche
Posts: 18 Joined: Tue Sep 05, 2006 7:21 am
Post
by Avalanche » Mon Sep 18, 2006 1:51 pm
thats pretty good, thx
now i can do my whole level in 3d modeller