- Timestamp:
- 03/18/07 00:25:35 (18 years ago)
- Location:
- OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/src/OgreOctree.cpp
r2128 r2257 87 87 mHalfSize( 0, 0, 0 ) 88 88 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 89 , mLastVisited(0), mVisible(false), mLastRendered(-1) 89 , mLastVisited(0), mVisible(false), mLastRendered(-1), mFullyVisible(false) 90 90 #endif //GTP_VISIBILITY_MODIFIED_OGRE 91 91 { … … 205 205 { 206 206 return mVisible; 207 } 208 //----------------------------------------------------------------------- 209 void Octree::setOctreeFullyVisible(bool visible) 210 { 211 mFullyVisible = visible; 212 } 213 //----------------------------------------------------------------------- 214 bool Octree::isOctreeFullyVisible() 215 { 216 return mFullyVisible; 207 217 } 208 218 //----------------------------------------------------------------------- -
OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
r2128 r2257 1214 1214 const int leavePassesInQueue) 1215 1215 { 1216 // delete previously rendered objects from the render queue1217 //_deleteRenderedQueueGroups(leavePassesInQueue);1218 1219 1216 RenderQueueGroup *currentGroup = 1220 1217 getRenderQueue()->getQueueGroup(getRenderQueue()->getDefaultQueueGroup()); 1218 // clear relevant passes rendered in last frame 1221 1219 currentGroup->clear(leavePassesInQueue); 1222 1220 … … 1260 1258 1261 1259 //-- the actual rendering 1262 //SceneManager::_renderVisibleObjects(); 1263 /*** msz: modified for v1-2-0 compatibility. what value for 2nd param? 1264 *** any preparation necessary?? ***/ 1260 _renderQueueGroupObjects(currentGroup, QueuedRenderableCollection::OM_PASS_GROUP); 1261 } 1262 //----------------------------------------------------------------------- 1263 void OctreeSceneManager::_renderOctantRecursive(Camera *cam, 1264 Octree *octant, 1265 bool onlyShadowCasters, 1266 const int leavePassesInQueue) 1267 { 1268 RenderQueueGroup *currentGroup = 1269 getRenderQueue()->getQueueGroup(getRenderQueue()->getDefaultQueueGroup()); 1270 currentGroup->clear(leavePassesInQueue); 1271 1272 // Add stuff to be rendered 1273 walkOctree(static_cast < OctreeCamera * > ( cam ), 1274 getRenderQueue(), 1275 octant, 1276 false, 1277 onlyShadowCasters); 1278 1279 //-- the actual rendering 1265 1280 _renderQueueGroupObjects(currentGroup, QueuedRenderableCollection::OM_PASS_GROUP); 1266 1281 }
Note: See TracChangeset
for help on using the changeset viewer.