Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

[OGRE21] SceneMangers #90

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

Annwvyn was using the OctreeSceneManager plugin. It doesn't exist anymore.

Now instead of "clever data structure", the object traversal is done by throwing more raw compute at it, because, well... Hardware is different from hardware 15 years ago.

Re-implement the scene manager declaration code to the new one.

Ybalrid commented 7 years ago

Looks like this can be done by

    smgr = root->createSceneManager(Ogre::ST_GENERIC, HOW_MANY_THREADS, Ogre::INSTANCING_CULLING_THREADED);

Strangely enough the "init scene" method is not implemented in the parent class but in each render class. That could be made better.

Ybalrid commented 7 years ago

OgreVRRender has a "createMainSceneManager" method that initialize a generic threaded smgr.

Still not happy about #96 here, realative to how many threads should be reserved for the furstrum culling...

Ybalrid commented 7 years ago

Since #96 is good. Closing this one.