Changeset 96 for trunk/VUT/Ogre
- Timestamp:
- 05/13/05 08:23:30 (20 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgrePlatformOcclusionQuery.cpp
r87 r96 1 1 #include "OgrePlatformOcclusionQuery.h" 2 #include <windows.h> 2 3 3 namespace Ogre { 4 4 -
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 { -
trunk/VUT/Ogre/src/OgreVisibilitySceneManager.cpp
r94 r96 9 9 10 10 namespace Ogre { 11 //namespace GtpVisibility { 11 12 12 //----------------------------------------------------------------------- 13 13 VisibilitySceneManager::VisibilitySceneManager(GtpVisibility::VisibilityManager *visManager) -
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.