Changeset 96 for trunk/VUT/Ogre/src/OgreVisibilityOctreeSceneManager.cpp
- Timestamp:
- 05/13/05 08:23:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreVisibilityOctreeSceneManager.cpp
r94 r96 21 21 //mShowBoxes = true; 22 22 23 mMaxDepth = 20; 23 // TODO: find reasonable value for max depth 24 mMaxDepth = 50; 24 25 } 25 26 //----------------------------------------------------------------------- … … 31 32 void VisibilityOctreeSceneManager::_renderVisibleObjects() 32 33 { 33 Camera *cullCam = NULL; 34 35 if(mCullCamera) cullCam = getCamera("CullCamera"); 36 37 mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, cullCam); 34 // two cameras (one for culling, one for rendering) 35 mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, 36 mCullCamera ? getCamera("CullCamera") : NULL); 38 37 mVisibilityManager->GetCullingManager()->InitFrame(); 39 38 39 // standard scenemanager rendering without hierarchical culling 40 40 if(!mUseCulling) 41 41 {
Note: See TracChangeset
for help on using the changeset viewer.