Changeset 2283 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 03/23/07 01:40:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp
r2281 r2283 33 33 ///////////// 34 34 //-- PART 1: process finished occlusion queries 35 35 //mHierarchyInterface->TraverseNode2(mHierarchyInterface->GetHierarchyRoot()); 36 //return; 37 36 38 while (!mHierarchyInterface->GetQueue()->empty() || !queryQueue.empty()) 37 39 { … … 108 110 continue; 109 111 } 110 if (mHierarchyInterface->IsLeaf(node)) 111 { 112 if (mHierarchyInterface->IsNodeVisible(node)) 113 CullingLogManager::GetSingleton()->LogMessage("u"); 114 else 115 CullingLogManager::GetSingleton()->LogMessage("g"); 116 } 117 112 118 113 if (mHierarchyInterface->IsNodeFullyVisible(node)) 119 114 { 120 CullingLogManager::GetSingleton()->LogMessage("here8");121 115 // node fully visible => test only random leaves 122 116 for (int i = 0; i < mRandomCandidates; ++ i) 123 117 { 124 CullingLogManager::GetSingleton()->LogMessage("z");125 118 HierarchyNode *randomLeaf = mHierarchyInterface->GetRandomLeaf(node); 126 CullingLogManager::GetSingleton()->LogMessage("c");119 127 120 if (!randomLeaf) 128 121 continue; … … 136 129 queryQueue.push(QueryPair(node, 137 130 mHierarchyInterface->IssueNodeOcclusionQuery(node))); 138 139 CullingLogManager::GetSingleton()->LogMessage("a");140 mHierarchyInterface->TraverseNode2(node);141 CullingLogManager::GetSingleton()->LogMessage("b");142 131 } 132 133 mHierarchyInterface->TraverseNode2(node); 143 134 144 135 continue;
Note: See TracChangeset
for help on using the changeset viewer.