Changeset 1312 for GTP/trunk/App/Demos
- Timestamp:
- 09/01/06 13:48:15 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp
r1304 r1312 623 623 mSceneMgr->setOption("RenderMethod", &mOptions.mRenderMethod); 624 624 mSceneMgr->setOption("EnhancedVisibility", &mOptions.mEnhancedVisibility); 625 mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue);626 // fix627 bool depthpass = false;628 mSceneMgr->setOption("UseDepthPass", &depthpass);629 625 } 630 626 // set algorithm when scene manager is OCM - numbering is different though … … 633 629 int alg = CONV_KDT_TO_OCM_ALG(mOptions.mRenderMethod); 634 630 mSceneMgr->setOption("Algorithm", &alg); 635 mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue); 636 } 631 } 632 bool vizcullnodes = true; 633 mSceneMgr->setOption("VisualizeCulledNodes", &vizcullnodes); 634 mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue); 635 636 // fix 637 //bool depthpass = true; 638 //mSceneMgr->setOption("UseDepthPass", &depthpass); 637 639 638 640 // create ray query for ground intersection -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTreeAppListener.cpp
r1304 r1312 432 432 { 433 433 // viewcells apply only for scenes loaded from geometry 434 if (mOptions.mSceneType != ST_GEOMETRY) 434 if (mOptions.mSceneType != ST_GEOMETRY || 435 mOptions.myApp->getViewCellsFileName().empty()) 435 436 return; 436 437 … … 445 446 // call once to load view cell loading overlay 446 447 mWindow->update(); 447 mViewCellsLoaded = mSceneMgr->setOption("LoadViewCells", mOptions.myApp->getViewCellsFileName().c_str()); 448 mViewCellsLoaded = mSceneMgr->setOption("LoadViewCells", 449 mOptions.myApp->getViewCellsFileName().c_str()); 448 450 449 451 if (!mViewCellsLoaded) … … 746 748 { 747 749 toggleRenderMethod(); 750 mTimeUntilNextToggle = 0.5; 751 } 752 753 if (mInputDevice->isKeyDown(KC_V) && mTimeUntilNextToggle <= 0) 754 { 755 toggleEnhancedVisibility(); 748 756 mTimeUntilNextToggle = 0.5; 749 757 }
Note: See TracChangeset
for help on using the changeset viewer.