Changeset 99 for trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
- Timestamp:
- 05/15/05 04:08:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
r61 r99 316 316 317 317 mOctree = new Octree( 0 ); 318 #ifdef OGRE_COHERENT_OCCLUSION_CULLING318 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 319 319 mNumOctreeNodes = 1; 320 #endif // OGRE_COHERENT_OCCLUSION_CULLING320 #endif // GTP_VISIBILITY_MODIFIED_OGRE 321 321 mMaxDepth = depth; 322 322 mBox = box; … … 461 461 { 462 462 octant -> mChildren[ x ][ y ][ z ] = new Octree( octant ); 463 #ifdef OGRE_COHERENT_OCCLUSION_CULLING463 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 464 464 mNumOctreeNodes ++; 465 #endif // OGRE_COHERENT_OCCLUSION_CULLING465 #endif // GTP_VISIBILITY_MODIFIED_OGRE 466 466 467 467 const Vector3 *corners = octant -> mBox.getAllCorners(); … … 1028 1028 1029 1029 mOctree = new Octree( 0 ); 1030 #ifdef OGRE_COHERENT_OCCLUSION_CULLING1030 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 1031 1031 mNumOctreeNodes = 1; 1032 #endif // OGRE_COHERENT_OCCLUSION_CULLING1032 #endif // GTP_VISIBILITY_MODIFIED_OGRE 1033 1033 mOctree->mBox = box; 1034 1034 … … 1166 1166 return q; 1167 1167 } 1168 #ifdef OGRE_COHERENT_OCCLUSION_CULLING1168 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 1169 1169 //----------------------------------------------------------------------- 1170 1170 void OctreeSceneManager::_renderOctant(Camera *cam, Octree *octant) … … 1177 1177 OctreeNode *sn = *it; 1178 1178 1179 mNumObjects++;1179 ++mNumObjects; 1180 1180 1181 1181 // check bounding box visibility of scene nodes … … 1187 1187 1188 1188 if (mDisplayNodes) 1189 { 1189 1190 getRenderQueue()->addRenderable(sn); 1191 } 1190 1192 1191 1193 // check if the scene manager or this node wants the bounding box shown. 1192 1194 if (sn->getShowBoundingBox() || mShowBoundingBoxes) 1195 { 1193 1196 sn->_addBoundingBoxToQueue(getRenderQueue()); 1194 1195 if (mShowBoxes) 1196 getRenderQueue()->addRenderable(octant->getWireBoundingBox()); 1197 } 1197 1198 } 1198 1199 ++it; 1199 1200 } 1200 1201 1202 if (mShowBoxes) 1203 { 1204 getRenderQueue()->addRenderable(octant->getWireBoundingBox()); 1205 ++mNumObjects; 1206 } 1207 1201 1208 SceneManager::_renderVisibleObjects(); 1202 1209 1203 // delete all rendered objects from renderqueue1210 // delete all rendered objects from the render queue 1204 1211 _deleteRenderedQueueGroups(); 1205 1212 } 1206 #endif // OGRE_COHERENT_OCCLUSION_CULLING1207 } 1213 #endif // GTP_VISIBILITY_MODIFIED_OGRE 1214 }
Note: See TracChangeset
for help on using the changeset viewer.