Changeset 115 for trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
- Timestamp:
- 05/30/05 03:20:23 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp
r112 r115 39 39 #include <OgreOctreeCamera.h> 40 40 #include <OgreRenderSystem.h> 41 #include <windows.h> 41 42 42 43 43 extern "C" … … 508 508 } 509 509 510 //matt: remove later511 //OutputDebugString("adding octree node\n");512 513 514 510 _addOctreeNode( n, octant -> mChildren[ x ][ y ][ z ], ++depth ); 515 511 … … 1173 1169 } 1174 1170 //----------------------------------------------------------------------- 1175 void OctreeSceneManager::_renderOctant(Camera *cam, Octree *octant, bool onlyShadowCasters) 1171 void OctreeSceneManager::_renderOctant(Camera *cam, Octree *octant, bool onlyShadowCasters, 1172 bool leaveTransparentsInQueue)//, bool useZPassQueue) 1176 1173 { 1177 1174 //Add stuff to be rendered; … … 1188 1185 { 1189 1186 sn->_addToRenderQueue(cam, getRenderQueue(), onlyShadowCasters); 1190 //node->_findVisibleObjects(cam, getRenderQueue(), false, mDisplayNodes, false);1191 1187 mVisible.push_back(sn); 1192 1188 … … 1207 1203 if (mShowBoxes) 1208 1204 { 1205 octant->getWireBoundingBox()->setMaterial("BaseWhiteNoLighting"); 1206 1209 1207 getRenderQueue()->addRenderable(octant->getWireBoundingBox()); 1210 1208 mBoxes.push_back(octant->getWireBoundingBox()); 1211 1209 } 1212 1210 1211 //-- the actual rendering 1213 1212 SceneManager::_renderVisibleObjects(); 1214 1215 1213 // delete all rendered objects from the render queue 1216 _deleteRenderedQueueGroups( );1214 _deleteRenderedQueueGroups(leaveTransparentsInQueue); 1217 1215 } 1218 1216 #endif // GTP_VISIBILITY_MODIFIED_OGRE
Note: See TracChangeset
for help on using the changeset viewer.