Changeset 96 for trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
- Timestamp:
- 05/13/05 08:23:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r94 r96 22 22 //mDisplayNodes = true; 23 23 //mShowBoundingBoxes = true; 24 mMaxDepth = 20;24 mMaxDepth = 50; 25 25 } 26 26 //----------------------------------------------------------------------- … … 32 32 void VisibilityTerrainSceneManager::_renderVisibleObjects() 33 33 { 34 Camera *cullCam = NULL; 35 36 // if two cameras (one for culling, one for visualization) 37 if(mCullCamera) 38 cullCam = getCamera("CullCamera"); 34 // two cameras (one for culling, one for rendering) 35 mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, 36 mCullCamera ? getCamera("CullCamera") : NULL); 37 mVisibilityManager->GetCullingManager()->InitFrame(); 39 38 40 if(cullCam && (mCameraInProgress != cullCam)) 41 OutputDebugString("using cullcam\n"); 42 else 43 OutputDebugString("not using cullcam\n"); 44 45 mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, cullCam); 46 mVisibilityManager->GetCullingManager()->InitFrame(); 47 39 // standard scenemanager rendering without hierarchical culling 48 40 if(!mUseCulling) 49 41 {
Note: See TracChangeset
for help on using the changeset viewer.