Ignore:
Timestamp:
10/24/05 16:37:50 (19 years ago)
Author:
mattausch
Message:

fixed color bug
fixed terrain tile ch culling
made better terrain

File:
1 edited

Legend:

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

    r346 r347  
    309309                generateScene(200, 2); 
    310310        } 
    311  
    312         // no limitations on height => it is possible for the user to put single  
    313         // objects on peaks of the terrain (only few, not relevant for occlusion) 
    314         mTerrainContentGenerator->SetMaxPos(mTerrainMaxPos); 
    315311} 
    316312//----------------------------------------------------------------------- 
     
    319315        float val = TerrainFrameListener::msObjectScales[objectType]; 
    320316        Vector3 scale(val, val, val);  
    321         const float maxHeight = 100; 
     317        const float maxHeight = 75; 
    322318        // to provide much occlusion, 
    323         // height is restricted to 50 => no objects are created on peaks 
     319        // height is restricted to maxHeight => no objects are created on peaks 
    324320        mTerrainContentGenerator->SetMinPos(Vector3(mTerrainMinPos)); 
    325321        mTerrainContentGenerator->SetMaxPos(Vector3(mTerrainMaxPos.x, maxHeight, mTerrainMaxPos.z)); 
     
    342338        } 
    343339 
    344         // no limitations anymore => it is possible for the user to put single  
    345         // objects on peaks of the terrain (only few, not relevant for occlusion) 
     340        // release limitations on height => it is possible for the user to put single  
     341        // objects on peaks of the terrain (will be only few, not relevant for occlusion) 
    346342        mTerrainContentGenerator->SetMaxPos(mTerrainMaxPos); 
    347343} 
Note: See TracChangeset for help on using the changeset viewer.