Changeset 44 for trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingTerrainSceneTraverser.cpp
- Timestamp:
- 04/12/05 18:32:32 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingTerrainSceneTraverser.cpp
r42 r44 23 23 24 24 // 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 30 27 for(int i=0; i<8; i++) 31 28 { … … 90 87 continue; 91 88 } 92 // 89 //if intersects near plane => skip occlusion query because wrong results possible 93 90 if(intersects) 94 91 { … … 212 209 { 213 210 // 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 219 213 octant->setOctreeVisible(true); 220 214 octant = octant->getParent(); … … 224 218 void OcclusionCullingTerrainSceneTraverser::renderOctant( Camera *cam, Octree *octant ) 225 219 { 220 //if(octant->numNodes() > 0) 226 221 if(octant->lastVisited() != octant->lastRendered()) 227 222 { 228 setRenderingMode(MODE_RENDER);223 //setRenderingMode(MODE_RENDER); 229 224 230 225 octant->setLastRendered(octant->lastVisited());
Note: See TracChangeset
for help on using the changeset viewer.