Changeset 111 for trunk/VUT/GtpVisibility
- Timestamp:
- 05/24/05 17:55:14 (20 years ago)
- Location:
- trunk/VUT/GtpVisibility
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/HierarchyInterface.h
r87 r111 110 110 void SetUseOptimization(bool useOptimization); 111 111 112 bool mDummy; 113 112 114 protected: 113 115 … … 124 126 HierarchyNode *mSceneRoot; 125 127 HierarchyNode *mPreviousNode; 128 129 126 130 }; 127 131 } // namespace GtpVisibility -
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r96 r111 7 7 void CoherentHierarchicalCullingManager::RenderScene() 8 8 { 9 InitFrame();9 //InitFrame(); 10 10 11 11 QueryQueue queryQueue; … … 31 31 else 32 32 { 33 if (mHierarchyInterface->mDummy) 33 34 mNumQueryCulledNodes ++; 34 35 } … … 44 45 45 46 if (!mHierarchyInterface->CheckFrustumVisible(node, intersects)) 46 { 47 { if (mHierarchyInterface->mDummy) 47 48 mNumFrustumCulledNodes ++; 48 49 } -
trunk/VUT/GtpVisibility/src/FrustumCullingManager.cpp
r96 r111 7 7 void FrustumCullingManager::RenderScene() 8 8 { 9 InitFrame();9 //InitFrame(); 10 10 11 11 while (!mHierarchyInterface->GetQueue()->empty()) 12 12 { 13 if (mHierarchyInterface->mDummy) 14 Ogre::LogManager::getSingleton().logMessage("shadow pass"); 15 // elseOgre::LogManager::getSingleton().logMessage("no shadow pass"); 13 16 HierarchyNode *node = mHierarchyInterface->GetQueue()->top(); 14 17 mHierarchyInterface->GetQueue()->pop(); … … 19 22 20 23 if (!mHierarchyInterface->CheckFrustumVisible(node)) 21 { 24 {if (mHierarchyInterface->mDummy) 22 25 mNumFrustumCulledNodes ++; 23 26 } -
trunk/VUT/GtpVisibility/src/HierarchyInterface.cpp
r86 r111 8 8 HierarchyInterface::HierarchyInterface(): 9 9 mFrameId(0), mNumTraversedNodes(0), mNumRenderedNodes(0), 10 mSceneRoot(0), mPreviousNode(0), mCurrentTestIdx(0), mUseOptimization(true) 10 mSceneRoot(0), mPreviousNode(0), mCurrentTestIdx(0), mUseOptimization(true), 11 mDummy(false) 11 12 { 12 13 mDistanceQueue = new DistanceQueue(GreaterDistance<HierarchyNode *>(this)); -
trunk/VUT/GtpVisibility/src/StopAndWaitCullingManager.cpp
r103 r111 1 1 #include "StopAndWaitCullingManager.h" 2 2 #include <OgreLogManager.h> 3 4 3 5 4 namespace GtpVisibility { … … 8 7 void StopAndWaitCullingManager::RenderScene() 9 8 { 10 InitFrame();9 //InitFrame(); 11 10 12 11 while (!mHierarchyInterface->GetQueue()->empty()) … … 22 21 23 22 if (!mHierarchyInterface->CheckFrustumVisible(node, intersects)) 24 { 23 {if (mHierarchyInterface->mDummy) 25 24 mNumFrustumCulledNodes ++; 26 25 } … … 48 47 else 49 48 { 49 if (mHierarchyInterface->mDummy) 50 50 mNumQueryCulledNodes ++; 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.