- Timestamp:
- 11/28/06 12:50:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1595 r1816 1333 1333 void KdTreeSceneManager::applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, 1334 1334 const bool load) 1335 { // NOTE: should not happen, rather apply view cell representing unbounded space then1335 { 1336 1336 if (!vc) 1337 1337 { 1338 1338 // set everything visible for savety 1339 1340 // NOTE: should not happen, rather apply view cell 1341 // representing unbounded space then 1339 1342 SetObjectsVisible(true); 1340 1341 1343 return; 1342 1344 } 1343 1345 1344 GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, 1345 oit_end = vc->GetPvs().mEntries.end(); 1346 1347 //-- PVS of view cell 1348 for (oit = vc->GetPvs().mEntries.begin(); oit != oit_end; ++ oit) 1349 { 1350 if (!(*oit).first) continue; 1351 1352 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>((*oit).first); 1353 omi->GetEntity()->setVisible(load); 1354 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 1346 ////////// 1347 //-- set PVS of view cell visible 1348 GtpVisibilityPreprocessor::ObjectPvsIterator pit = vc->GetPvs().GetIterator(); 1349 1350 while (pit.HasMoreEntries()) 1351 { 1352 GtpVisibilityPreprocessor::ObjectPvsEntry entry = pit.Next(); 1353 1354 if (entry.mObject) 1355 { 1356 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance *>(entry.mObject); 1357 omi->GetEntity()->setVisible(load); 1358 } 1355 1359 } 1356 1360 }
Note: See TracChangeset
for help on using the changeset viewer.