Changeset 259 for trunk/VUT/Ogre
- Timestamp:
- 09/06/05 18:18:47 (19 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreVisibilityOctreeSceneManager.cpp
r254 r259 436 436 if (key == "NumHierarchyNodes") 437 437 { 438 * static_cast<unsigned int *>(val) = (unsigned int)mNumOct reeNodes;438 * static_cast<unsigned int *>(val) = (unsigned int)mNumOctants; 439 439 return true; 440 440 } … … 473 473 << "Use optimization: " << StringConverter::toString(mHierarchyInterface->GetTestGeometryForVisibleLeaves()) << ", " 474 474 << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << "\n" 475 << "Hierarchy nodes: " << mNumOct reeNodes << ", "475 << "Hierarchy nodes: " << mNumOctants << ", " 476 476 << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 477 477 << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", " -
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r254 r259 239 239 void VisibilityTerrainSceneManager::_renderVisibleObjects() 240 240 { 241 241 242 InitDepthPass(); // create material for depth pass 242 243 InitItemBufferPass(); // create material for item buffer pass … … 282 283 283 284 TerrainSceneManager::_renderVisibleObjects(); 284 285 285 286 286 #ifdef GTP_VISIBILITY_MODIFIED_OGRE … … 293 293 addSpecialCaseRenderQueue(RENDER_QUEUE_SKIES_LATE); 294 294 addSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY); 295 296 // exclude this queues from hierarchical rendering 295 297 setSpecialCaseRenderQueueMode(SceneManager::SCRQM_EXCLUDE); 296 297 298 298 299 // set all necessary parameters for … … 333 334 // used for depth pass, transparents, overlay 334 335 clearSpecialCaseRenderQueues(); 336 335 337 TerrainSceneManager::_renderVisibleObjects(); 336 338 } 337 339 338 // set the new render level index 340 // HACK: set the new render level index, important to avoid cracks 341 // in terrain caused by LOD 339 342 TerrainRenderable::NextRenderLevelIndex(); 340 343 … … 345 348 OGRE_DELETE(mRenderQueue); // HACK: should be cleared before... 346 349 //WriteLog(); // write out stats 350 347 351 } 348 352 … … 438 442 if (key == "NumHierarchyNodes") 439 443 { 440 * static_cast<unsigned int *>(val) = (unsigned int)mNumOct reeNodes;444 * static_cast<unsigned int *>(val) = (unsigned int)mNumOctants; 441 445 return true; 442 446 } … … 477 481 << "Use optimization: " << StringConverter::toString(mHierarchyInterface->GetTestGeometryForVisibleLeaves()) << ", " 478 482 << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << ", " 479 << "Hierarchy nodes: " << mNumOct reeNodes << ", "483 << "Hierarchy nodes: " << mNumOctants << ", " 480 484 << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 481 485 << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", "
Note: See TracChangeset
for help on using the changeset viewer.