Changeset 2306 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 04/02/07 11:50:36 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/BatchedQueriesCullingManager.cpp
r2280 r2306 100 100 101 101 // reset node's visibility classification 102 // set visib e if geometry in node so we only traverse once102 // set visible if geometry in node so we only traverse once 103 103 mHierarchyInterface->SetNodeVisible(node, wasVisible && issueQuery); 104 104 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/CoherentHierarchicalCullingManager.cpp
r2292 r2306 110 110 111 111 // reset node's visibility classification 112 // set visib e if geometry in node so we only traverse once112 // set visible if geometry in node so we only traverse once 113 113 mHierarchyInterface->SetNodeVisible(node, wasVisible && issueQuery); 114 114 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/HierarchyInterface.cpp
r938 r2306 29 29 void HierarchyInterface::InitTraversal() 30 30 { 31 //-- initialise for front-to-back rendering 31 ////////////// 32 //-- initialise for hierarchical traversal 32 33 33 34 ++ mFrameId; -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp
r2292 r2306 133 133 134 134 // update node's visited flag 135 mHierarchyInterface->SetLastVisited(randomLeaf, 136 mHierarchyInterface->GetFrameId()); 135 mHierarchyInterface->PullUpLastVisited(randomLeaf, mHierarchyInterface->GetFrameId()); 137 136 138 137 queryQueue.push(QueryPair(randomLeaf, … … 152 151 153 152 // update node's visited flag 154 mHierarchyInterface-> SetLastVisited(leaf, mHierarchyInterface->GetFrameId());153 mHierarchyInterface->PullUpLastVisited(leaf, mHierarchyInterface->GetFrameId()); 155 154 156 155 queryQueue.push(QueryPair(leaf, … … 168 167 169 168 // reset node's visibility classification 170 // set visib e if geometry in node => we only traverse the node once169 // set visible if geometry in node => we only traverse the node once 171 170 mHierarchyInterface->SetNodeVisible(node, wasVisible && issueQuery); 172 171 … … 193 192 } 194 193 195 //while (!mHierarchyInterface->GetQueue()->empty())196 // mHierarchyInterface->GetQueue()->pop();197 198 194 // update the fully visible classifications 199 // TODO: this should be done during traversal!200 195 mHierarchyInterface->DetermineFullVisibility(mHierarchyInterface->GetHierarchyRoot()); 196 //mHierarchyInterface->DetermineVisibilityRatio(mHierarchyInterface->GetHierarchyRoot()); 201 197 } 202 198 //----------------------------------------------------------------------- … … 210 206 { 211 207 mThreshold = RAND_MAX - RAND_MAX / mAssumedVisibility; 212 if (mAssumedVisibility > 100) // fix visibility208 if (mAssumedVisibility > 100) // no random decicion 213 209 mThreshold = RAND_MAX; 214 210 }
Note: See TracChangeset
for help on using the changeset viewer.