Changeset 1606 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 10/10/06 20:28:28 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h
r1602 r1606 210 210 /// If view cells are used. 211 211 bool mUseViewCells; 212 213 /// if view cells visualization should be shown 214 bool mShowViewCells; 212 215 213 216 /// if the view cells are filtered -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1602 r1606 52 52 mElementaryViewCell(NULL), 53 53 mDeleteQueueAfterRendering(true), 54 mNormalExecution(false) 54 mNormalExecution(false), 55 mShowViewCells(false) 55 56 { 56 57 Ogre::LogManager::getSingleton().logMessage("creating occlusion culling scene manager"); … … 178 179 if (mCurrentViewCell && mCurrentViewCell->GetMesh()) 179 180 { 180 const bool showSingleViewCell = true;181 if ( showSingleViewCell)181 //const bool showSingleViewCell = true; 182 if (!mShowViewCells) 182 183 { 183 184 const int id = mCurrentViewCell->GetId(); 184 185 mViewCellsGeometry[id]->_updateRenderQueue(getRenderQueue()); 185 186 GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, oit_end = mCurrentViewCell->GetPvs().mEntries.end();187 188 for (oit = mCurrentViewCell->GetPvs().mEntries.begin(); oit != oit_end; ++ oit)189 {190 OgreMeshInstance *obj = static_cast<OgreMeshInstance *>((*oit).first);191 obj->GetEntity()->_updateRenderQueue(getRenderQueue());192 }193 186 } 194 187 else … … 201 194 } 202 195 } 196 197 GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator 198 oit, oit_end = mCurrentViewCell->GetPvs().mEntries.end(); 199 200 for (oit = mCurrentViewCell->GetPvs().mEntries.begin(); oit != oit_end; ++ oit) 201 { 202 OgreMeshInstance *obj = static_cast<OgreMeshInstance *>((*oit).first); 203 obj->GetEntity()->_updateRenderQueue(getRenderQueue()); 204 } 203 205 } 204 206 /* … … 638 640 if (mViewCellsLoaded) 639 641 { 640 bool showViewCells = *static_cast<const bool *>(val);642 mShowViewCells = *static_cast<const bool *>(val); 641 643 // if we decide use view cells 642 644 // all objects are set to invisible per default 643 VisualizeViewCells( showViewCells);645 VisualizeViewCells(mShowViewCells); 644 646 } 645 647
Note: See TracChangeset
for help on using the changeset viewer.