Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8593 in orxonox.OLD


Ignore:
Timestamp:
Jun 19, 2006, 11:42:43 PM (18 years ago)
Author:
ponder
Message:
 
Location:
branches/terrain/src/lib/graphics/importer/terrain
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/importer/terrain/terrain.cc

    r8569 r8593  
    9494}
    9595
    96 //TODO: The method could be optimized. We could get rid of the hidePages call
    97 //              by setting a active flag in every pages that is visible. Then a walk
    98 //              through the activePages list is sufficient to remove all invisible
    99 //              pages.
    100 //              DONE
    10196void Terrain::determineVisiblePages( pTerrainQuad _node )
    10297{
     
    182177                        if ( minLOD < page->getWantedLOD()-1 ) {
    183178                                page->setWantedLOD( minLOD+1 );
    184                                 dirty = true;
     179                                //dirty = true;
    185180                        }       
    186181                        page = page->getNext();
  • branches/terrain/src/lib/graphics/importer/terrain/terrain_page.cc

    r8569 r8593  
    4848        int xStart = 0, xEnd = owner->getPageSize();   
    4949        int halfStride = _zStride >> 1;
     50        assert( _xStride > 0 );         assert( _zStride > 0 );
    5051        if ( _z ) {
    5152                addAgain( );
  • branches/terrain/src/lib/graphics/importer/terrain/terrain_page.h

    r8569 r8593  
    213213                inline void setWantedLOD( int _lod )
    214214                {
    215                         if ( wantedLOD >= TerrainPage::MAX_LODS )
    216                                 wantedLOD = 4;
    217                         else if ( wantedLOD < 0 )
     215                        if ( _lod >= TerrainPage::MAX_LODS )
     216                                wantedLOD = TerrainPage::MAX_LODS-1;
     217                        else if ( _lod < 0 )
    218218                                wantedLOD = 0;
    219219                        else
    220220                                wantedLOD = _lod;
    221                 }               
     221                }
     222                               
    222223        protected:
    223224               
Note: See TracChangeset for help on using the changeset viewer.