Changeset 122 for trunk/VUT/work


Ignore:
Timestamp:
06/10/05 01:46:50 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/work/TestCullingTerrain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCullingTerrain/TerrainMouseQueryListener.cpp

    r121 r122  
    5454mTerrainContentGenerator(sceneGenerator), 
    5555mVisibilityThreshold(0), 
    56 mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 
    57 //mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::FRUSTUM_CULLING), 
     56//mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING), 
     57mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::FRUSTUM_CULLING), 
    5858mNodeVizMode(NODEVIZ_NONE), 
    5959mVizCameraHeight(Real(2500.0)), 
     
    231231bool TerrainMouseQueryListener::frameStarted(const FrameEvent &evt) 
    232232{ 
     233        LogManager::getSingleton().logMessage("frame started"); 
    233234        if (mWindow->isClosed()) 
    234235        return false; 
     
    236237         mInputDevice->capture(); 
    237238                  
     239         //-- IMPORTANT: must be set, otherwise terrain is not rendered correctly 
     240         int terrainLevelIdx = 0; 
     241         mSceneMgr->setOption("TerrainLevelIdx", &terrainLevelIdx); 
     242 
    238243         //-- setup what is needed for immediate mouse/key movement 
    239244         if (mTimeDelay >= 0)  
  • trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp

    r121 r122  
    2222TestCullingTerrainApplication::~TestCullingTerrainApplication() 
    2323{ 
    24         if(mTerrainContentGenerator) 
     24        if (mTerrainContentGenerator) 
     25        { 
    2526                delete mTerrainContentGenerator; 
     27                mTerrainContentGenerator = NULL; 
     28        } 
    2629        //if(mRenderTargetListener)     delete mRenderTargetListener; 
    2730} 
Note: See TracChangeset for help on using the changeset viewer.