- Timestamp:
- 05/13/05 08:23:30 (20 years ago)
- Location:
- trunk/VUT
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r95 r96 8 8 { 9 9 InitFrame(); 10 Ogre::LogManager::getSingleton().logMessage("**** CHCULL ****\n"); 11 10 12 11 QueryQueue queryQueue; 13 12 unsigned int visiblePixels = 0; … … 25 24 queryQueue.pop(); 26 25 27 if ( 1)//visiblePixels > mVisibilityThreshold)26 if (visiblePixels > mVisibilityThreshold) 28 27 { 29 28 mHierarchyInterface->PullUpVisibility(node); -
trunk/VUT/GtpVisibility/src/FrustumCullingManager.cpp
r94 r96 8 8 { 9 9 InitFrame(); 10 Ogre::LogManager::getSingleton().logMessage("**** Frustum Culling ****\n");10 11 11 while (!mHierarchyInterface->GetQueue()->empty()) 12 12 { -
trunk/VUT/GtpVisibility/src/StopAndWaitCullingManager.cpp
r94 r96 9 9 { 10 10 InitFrame(); 11 Ogre::LogManager::getSingleton().logMessage("*** STOP AND WAIT CULL ****\n");12 11 13 12 while (!mHierarchyInterface->GetQueue()->empty()) -
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.