- Timestamp:
- 03/18/07 00:25:35 (18 years ago)
- Location:
- OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/include/OgreOctree.h
r921 r2257 177 177 */ 178 178 bool isOctreeVisible(void); 179 void setOctreeFullyVisible(bool visible); 180 /** Returns true if this node is marked visible, false otherwise. 181 */ 182 bool isOctreeFullyVisible(void); 179 183 /** Gets this node's parent (NULL if this is the root). 180 184 */ … … 205 209 int mLastVisited; 206 210 bool mVisible; 207 211 bool mFullyVisible; 208 212 #endif // GTP_VISIBILITY_MODIFIED_OGRE 209 213 }; -
OGRE/trunk/ogre_changes/Ogre1.2/PlugIns/OctreeSceneManager/include/OgreOctreeSceneManager.h
r921 r2257 123 123 @param passes if passes should be left in queue for later processing 124 124 */ 125 void _renderOctant(Camera* cam, Octree *octree, bool onlyShadowCasters, 125 void _renderOctant(Camera* cam, 126 Octree *octree, 127 bool onlyShadowCasters, 126 128 const int leavePassesInQueue = 0); 127 129 128 /** Returns stored list of boxes */ 130 void _renderOctantRecursive(Camera* cam, 131 Octree *octree, 132 bool onlyShadowCasters, 133 const int leavePassesInQueue = 0); 134 135 136 /** Returns stored list of boxes 137 */ 129 138 BoxList *getBoxes(); 139 130 140 #endif // GTP_VISIBILITY_MODIFIED_OGRE 131 141 -
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.