Changeset 122 for trunk/VUT/work
- Timestamp:
- 06/10/05 01:46:50 (19 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainMouseQueryListener.cpp
r121 r122 54 54 mTerrainContentGenerator(sceneGenerator), 55 55 mVisibilityThreshold(0), 56 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING),57 //mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::FRUSTUM_CULLING),56 //mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 57 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::FRUSTUM_CULLING), 58 58 mNodeVizMode(NODEVIZ_NONE), 59 59 mVizCameraHeight(Real(2500.0)), … … 231 231 bool TerrainMouseQueryListener::frameStarted(const FrameEvent &evt) 232 232 { 233 LogManager::getSingleton().logMessage("frame started"); 233 234 if (mWindow->isClosed()) 234 235 return false; … … 236 237 mInputDevice->capture(); 237 238 239 //-- IMPORTANT: must be set, otherwise terrain is not rendered correctly 240 int terrainLevelIdx = 0; 241 mSceneMgr->setOption("TerrainLevelIdx", &terrainLevelIdx); 242 238 243 //-- setup what is needed for immediate mouse/key movement 239 244 if (mTimeDelay >= 0) -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r121 r122 22 22 TestCullingTerrainApplication::~TestCullingTerrainApplication() 23 23 { 24 if(mTerrainContentGenerator) 24 if (mTerrainContentGenerator) 25 { 25 26 delete mTerrainContentGenerator; 27 mTerrainContentGenerator = NULL; 28 } 26 29 //if(mRenderTargetListener) delete mRenderTargetListener; 27 30 }
Note: See TracChangeset
for help on using the changeset viewer.