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