- Timestamp:
- 02/09/07 03:05:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2106 r2108 235 235 // the scale factor for the visualized bounding boxes 236 236 mSceneMgr->setOption("NodeVizScale", &mVizScale); 237 237 238 ///////// 238 239 //-- set the current culling algorithm type 239 setAlgorithm(mApplication->mAlgorithm); 240 //setAlgorithm(mApplication->mAlgorithm); 241 242 bool isNormalExecution; 243 244 mSceneMgr->getOption("NormalExecution", &isNormalExecution); 245 if (isNormalExecution) 246 { 247 // no algorithm 248 mCurrentAlgorithm = 249 GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS; 250 } 251 else 252 { 253 mSceneMgr->getOption("Algorithm", &mCurrentAlgorithm); 254 } 255 256 applyCurrentAlgorithm(); 257 258 /////////////////////////////// 240 259 241 260 // set scene manager options … … 481 500 // frame start time 482 501 mTimeFrameStarted = mTimer->getMilliseconds(); 483 //Ogre::LogManager::getSingleton().logMessage("Frame started");484 502 } 485 503 … … 517 535 { 518 536 mApplication->Clamp2Terrain(mCamNode, 5); 537 //Ogre::LogManager::getSingleton().logMessage("clamp to terrain"); 519 538 } 520 539 else 521 540 { 522 541 mApplication->Clamp2FloorPlane(mFloorDist); 542 //Ogre::LogManager::getSingleton().logMessage("clamp to floor"); 523 543 } 524 544 … … 526 546 527 547 default: 548 Ogre::LogManager::getSingleton().logMessage("should not come here"); 528 549 break; 529 550 };
Note: See TracChangeset
for help on using the changeset viewer.