- Timestamp:
- 03/23/07 18:43:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2282 r2290 17 17 "Coherent Hierarchical Culling", 18 18 "View Frustum Culling", 19 "Random Update Culling", 19 20 "Stop and Wait Culling", 20 21 "Standard Rendering" … … 25 26 { 26 27 "CHC", 27 "VFC", 28 "VFC", 29 "RUC", 28 30 "SWC", 29 31 "DEF" … … 288 290 mTimeFrameEnded = mTimeFrameStarted = mTimer->getMilliseconds(); 289 291 290 if (0 && (mSceneMgr->getSceneNode("robot Entity1Node")->291 getAttachedObject(0)->getMovableType() == "Entity"))292 Ogre::LogManager::getSingleton().logMessage("found entity");293 294 292 // init view cell parameters 295 //mSceneMgr->setOption("UseViewCells", &mUseViewCells);296 293 mSceneMgr->setOption("UseVisibilityFilter", &mUseVisibilityFilter); 297 294 … … 487 484 488 485 // important for visualization => draw octree bounding boxes 489 if (0) 490 mSceneMgr->setOption("ShowOctree", &mShowVisualization); 486 if (0) mSceneMgr->setOption("ShowOctree", &mShowVisualization); 491 487 492 488 /////////////// … … 600 596 itemBufferMode); 601 597 602 //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false);603 604 598 visManager->SetQueryManager(mQueryManager); 605 599 … … 1255 1249 void TerrainFrameListener::toggleShowViewCells() 1256 1250 { 1257 if (0) // tmp matt 1258 { 1259 mShowViewCells = !mShowViewCells; 1260 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1261 } 1262 else 1263 { 1264 unsigned int numObjects; 1265 mSceneMgr->getOption("VisibleObjects", &numObjects); 1266 } 1251 mShowViewCells = !mShowViewCells; 1252 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1267 1253 } 1268 1254 //-----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.