Changeset 115 for trunk/VUT/work/ogre_changes/Plugins
- Timestamp:
- 05/30/05 03:20:23 (20 years ago)
- Location:
- trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctreeSceneManager.h
r112 r115 105 105 /** Renders one octant of an octree, i.e., renders current octant 106 106 node and does not traverse deeper into the tree. 107 107 108 @remark Note that OctreeNode instances are NOT part of the octree 108 109 hierarchy, instead one octant of an Octree contains many OctreeNode instances. 109 @param octree the octree to be rendered110 110 111 @param cam current camera 112 @param octree the octant to be rendered (without children) 113 @param onlyShadowCasters if only shadow casters are rendered 114 @param leaveTransparentsInQueue if transparemt should be left in queue for later processing 111 115 */ 112 void _renderOctant(Camera* cam, Octree *octree, bool onlyShadowCasters );116 void _renderOctant(Camera* cam, Octree *octree, bool onlyShadowCasters, bool leaveTransparentsInQueue = false); 113 117 114 118 /** Returns stored list of boxes */ … … 214 218 IntersectionSceneQuery* createIntersectionQuery(unsigned long mask); 215 219 220 216 221 protected: 217 222 -
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp
r61 r115 109 109 mDepth = 0; 110 110 111 //matt: remove later112 //char msg[100];113 //sprintf(msg, "creating new octant in depth %d", mDepth);114 //OutputDebugString(msg);115 116 111 #endif //GTP_VISIBILITY_MODIFIED_OGRE 117 112 mNumNodes = 0; … … 171 166 172 167 mWireBoundingBox->setupBoundingBox(mBox); 173 174 // matt: change this back175 //AxisAlignedBox box; _getCullBounds(&box);176 //mWireBoundingBox->setupBoundingBox(box);177 178 168 return mWireBoundingBox; 179 169 } -
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.