Changeset 922 for OGRE/trunk


Ignore:
Timestamp:
05/06/06 20:30:38 (19 years ago)
Author:
mattausch
Message:

fixed terrain error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/src/OgreTerrainRenderable.cpp

    r921 r922  
    178178 
    179179#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    180                 for (int i = 0; i < MAX_RENDERLEVEL_INDEX; ++i) 
     180                for (int i = 0; i < MAX_RENDERLEVEL_INDEX; ++i ) 
    181181                { 
    182182                        mRenderLevel[i] = 1; 
     
    981981    { 
    982982        unsigned int stitchFlags = 0; 
    983  
    984         if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> mRenderLevel > mRenderLevel ) 
     983#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     984        if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> getRenderLevel() > getRenderLevel() ) 
     985        { 
     986            stitchFlags |= STITCH_EAST; 
     987            stitchFlags |=  
     988                (mNeighbors[ EAST ] -> getRenderLevel() - getRenderLevel()) << STITCH_EAST_SHIFT; 
     989        } 
     990 
     991        if ( mNeighbors[ WEST ] != 0 && mNeighbors[ WEST ] -> getRenderLevel() > getRenderLevel() ) 
     992        { 
     993            stitchFlags |= STITCH_WEST; 
     994            stitchFlags |=  
     995                (mNeighbors[ WEST ] -> getRenderLevel() - getRenderLevel()) << STITCH_WEST_SHIFT; 
     996        } 
     997 
     998        if ( mNeighbors[ NORTH ] != 0 && mNeighbors[ NORTH ] -> getRenderLevel() > getRenderLevel() ) 
     999        { 
     1000            stitchFlags |= STITCH_NORTH; 
     1001            stitchFlags |=  
     1002                (mNeighbors[ NORTH ] -> getRenderLevel() - getRenderLevel()) << STITCH_NORTH_SHIFT; 
     1003        } 
     1004 
     1005        if ( mNeighbors[ SOUTH ] != 0 && mNeighbors[ SOUTH ] -> getRenderLevel() > getRenderLevel() ) 
     1006        { 
     1007            stitchFlags |= STITCH_SOUTH; 
     1008            stitchFlags |=  
     1009                (mNeighbors[ SOUTH ] -> getRenderLevel() - getRenderLevel()) << STITCH_SOUTH_SHIFT; 
     1010        } 
     1011#else 
     1012         if ( mNeighbors[ EAST ] != 0 && mNeighbors[ EAST ] -> mRenderLevel > mRenderLevel ) 
    9851013        { 
    9861014            stitchFlags |= STITCH_EAST; 
     
    10091037                (mNeighbors[ SOUTH ] -> mRenderLevel - mRenderLevel) << STITCH_SOUTH_SHIFT; 
    10101038        } 
    1011  
     1039#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    10121040        // Check preexisting 
    10131041                LevelArray& levelIndex = mSceneManager->_getLevelIndex(); 
Note: See TracChangeset for help on using the changeset viewer.