Changeset 1606 for GTP/trunk/Lib
- Timestamp:
- 10/10/06 20:28:28 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 3 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 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1603 r1606 2488 2488 2489 2489 ViewCellInterior *interior = dynamic_cast<ViewCellInterior *>(root); 2490 2491 // reset interior pvs 2490 2492 interior->GetPvs().Clear(); 2493 // reset recursive pvs 2491 2494 pvs.Clear(); 2492 2495 vector<ObjectPvs> pvsList;
Note: See TracChangeset
for help on using the changeset viewer.