Changeset 726 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 04/04/06 23:55:38 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/CoherentHierarchicalCullingManager.cpp
r350 r726 30 30 while (!mHierarchyInterface->GetQueue()->empty() || !queryQueue.empty()) 31 31 { 32 // only wait for result if queue is empty 32 33 while (!queryQueue.empty() && 33 34 queryQueue.front().second->GetQueryResult(visiblePixels, … … 40 41 if (visiblePixels > mVisibilityThreshold) 41 42 { 42 // ensure that we only traverse once if geometry in node43 // in case geometry is in omterior node: ensure that we only traverse once 43 44 if (!mHierarchyInterface->IsNodeVisible(node)) 45 { 44 46 mHierarchyInterface->TraverseNode(node); 47 } 48 45 49 mHierarchyInterface->PullUpVisibility(node); 46 50 } … … 96 100 { 97 101 SkipQuery(node); 98 99 102 continue; 100 103 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/FrustumCullingManager.cpp
r720 r726 8 8 { 9 9 if (0) Ogre::LogManager::getSingleton().logMessage("Frustum Culling"); 10 10 11 while (!mHierarchyInterface->GetQueue()->empty()) 11 12 { 12 13 HierarchyNode *node = mHierarchyInterface->GetQueue()->top(); 13 14 mHierarchyInterface->GetQueue()->pop(); 14 15 15 16 // interesting for visualization purpose 16 17 mHierarchyInterface->SetNodeVisible(node, false); … … 33 34 } 34 35 } 35 36 36 } // namespace GtpVisibility -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/HierarchyInterface.cpp
r316 r726 7 7 //----------------------------------------------------------------------- 8 8 HierarchyInterface::HierarchyInterface(): 9 mFrameId(0), mNumTraversedNodes(0), mHierarchyRoot(NULL), 10 mSavedNode(NULL), mCurrentTestIdx(0), mTestGeometryForVisibleLeaves(false) 9 mFrameId(0), 10 mNumTraversedNodes(0), 11 mHierarchyRoot(NULL), 12 mSavedNode(NULL), 13 mCurrentTestIdx(0), 14 mTestGeometryForVisibleLeaves(false) 11 15 { 12 16 mDistanceQueue = new DistanceQueue(GtDistance<HierarchyNode *>(this)); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp
r722 r726 18 18 mAssumedVisibilityForChc(0) 19 19 { 20 21 20 #if 1 22 21 SetCullingManager(VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING);
Note: See TracChangeset
for help on using the changeset viewer.