hi all!
I'm trying to use staticgeometry with octreescenemanager but my staticgeometries are not shown... is there a thing to use toghether octree and static?
thanks
octreescenemanager with staticgeometry
- ghiboz
- Goblin
- Posts: 205
- Joined: Wed Apr 25, 2007 9:47 pm
- Location: Centallo (I)
- x 2
- Contact:
- Kojack
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 534
Re: octreescenemanager with staticgeometry
How are you using the static geometry? (as in actual code)
The octree manager is the standard one (if you aren't asking for a scene manager by explicit type, you are probably getting the octree manager), so it gets used with static geometry a lot. Nothing special needs to be done.
Are you doing the build step on the static geometry after you've added all the entities to it?
The octree manager is the standard one (if you aren't asking for a scene manager by explicit type, you are probably getting the octree manager), so it gets used with static geometry a lot. Nothing special needs to be done.
Are you doing the build step on the static geometry after you've added all the entities to it?
- ghiboz
- Goblin
- Posts: 205
- Joined: Wed Apr 25, 2007 9:47 pm
- Location: Centallo (I)
- x 2
- Contact:
Re: octreescenemanager with staticgeometry
hi!
looking here:
http://www.ogre3d.org/tikiwiki/SceneManagersFAQ
If I don't load Plugin_OctreeSceneManager the scenemanager is default (not octree..)
I do this in my code:
I process a xml using dotsceneloader and I have into a node all the meshes attached.
after this I create a static geometry grouping the meshes by a grid of 100m, to do this I cycle into the entities attached to the node and (when found for each cell of the gid), I add the entity to my static object.
after, for each staticgeometry I build.
now the questions:
what I need to do to the node that I used to load my meshes?
I've read somewhere that octree needs to have all the meshes in the root node.. is correct? with a staticgeometry this thing is not valid ('cause the staticgeometry objects doesn't have parent)
thanks again!
looking here:
http://www.ogre3d.org/tikiwiki/SceneManagersFAQ
If I don't load Plugin_OctreeSceneManager the scenemanager is default (not octree..)
I do this in my code:
I process a xml using dotsceneloader and I have into a node all the meshes attached.
after this I create a static geometry grouping the meshes by a grid of 100m, to do this I cycle into the entities attached to the node and (when found for each cell of the gid), I add the entity to my static object.
after, for each staticgeometry I build.
now the questions:
what I need to do to the node that I used to load my meshes?
I've read somewhere that octree needs to have all the meshes in the root node.. is correct? with a staticgeometry this thing is not valid ('cause the staticgeometry objects doesn't have parent)
thanks again!