Ignore:
Timestamp:
04/12/05 18:32:32 (19 years ago)
Author:
mattausch
Message:

implementation for terrain + octree scenemanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingTerrainSceneTraverser.cpp

    r42 r44  
    2323         
    2424                // if we come across some renderable geometry => render it 
    25                 if(octant->numNodes() > 0) 
    26                 { 
    27                         renderOctant(cam, octant); 
    28                 } 
    29  
     25                renderOctant(cam, octant); 
     26                 
    3027                for(int i=0; i<8; i++) 
    3128                { 
     
    9087                                continue; 
    9188                        } 
    92                         // if intersects near plane => skip occlusion query because wrong results possible 
     89                        //if intersects near plane => skip occlusion query because wrong results possible 
    9390                        if(intersects) 
    9491                        { 
     
    212209                { 
    213210                        // if we come across some renderable geometry => render it 
    214                         if(octant->numNodes() > 0) 
    215                         { 
    216                                 renderOctant(cam, octant); 
    217                         } 
    218  
     211                        renderOctant(cam, octant); 
     212                         
    219213                        octant->setOctreeVisible(true); 
    220214                        octant = octant->getParent(); 
     
    224218        void OcclusionCullingTerrainSceneTraverser::renderOctant( Camera *cam, Octree *octant ) 
    225219        { 
     220                //if(octant->numNodes() > 0) 
    226221                if(octant->lastVisited() != octant->lastRendered()) 
    227222                { 
    228                         setRenderingMode(MODE_RENDER); 
     223                        //setRenderingMode(MODE_RENDER); 
    229224 
    230225                        octant->setLastRendered(octant->lastVisited()); 
Note: See TracChangeset for help on using the changeset viewer.