Changeset 1610 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 10/11/06 05:35:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1606 r1610 72 72 void OcclusionCullingSceneManager::InitDepthPass() 73 73 { 74 MaterialPtr depthMat = MaterialManager::getSingleton().getByName("Visibility/DepthPass"); 74 MaterialPtr depthMat = 75 MaterialManager::getSingleton().getByName("Visibility/DepthPass"); 75 76 76 77 if (depthMat.isNull()) … … 106 107 { 107 108 // Init 108 itemBufferMat = MaterialManager::getSingleton().create("Visibility/ItemBufferPass", 109 itemBufferMat = 110 MaterialManager::getSingleton().create("Visibility/ItemBufferPass", 109 111 ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 110 112 … … 132 134 ResourceGroupManager::getSingleton().getWorldResourceGroupName()); 133 135 } 136 134 137 destroyLevelIndexes(); 135 138 mTerrainPages.clear(); 139 136 140 // Load the configuration 137 141 loadConfig(stream); … … 361 365 void OcclusionCullingSceneManager::_renderVisibleObjects() 362 366 { 363 364 367 if (mNormalExecution) 365 368 { 366 369 // the standard octree rendering mode 367 370 TerrainSceneManager::_renderVisibleObjects(); 371 getRenderQueue()->clear(mDeleteQueueAfterRendering); 368 372 return; 369 373 } … … 1123 1127 // if no there is no view cell, set everything visible 1124 1128 SetObjectsVisible(true); 1129 1125 1130 return; 1126 1131 } … … 1134 1139 for (oit = vc->GetPvs().mEntries.begin(); oit != oit_end; ++ oit) 1135 1140 { 1141 // no associated geometry found 1136 1142 if (!(*oit).first) continue; 1137 1143
Note: See TracChangeset
for help on using the changeset viewer.