- Timestamp:
- 10/10/06 01:27:11 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchySceneManager.cpp
r1593 r1595 27 27 { 28 28 29 BvHierarchySceneManager::BvHierarchySceneManager(const String& name, GtpVisibility::VisibilityManager *vm): 29 BvHierarchySceneManager::BvHierarchySceneManager(const String& name, 30 GtpVisibility::VisibilityManager *vm): 30 31 SceneManager(name), 31 32 mVisibilityManager(vm), … … 1323 1324 // converter between view cell ids and Ogre entites 1324 1325 GtpVisibilityPreprocessor::IndexedBoundingBoxContainer iboxes; 1325 #if 0 1326 OgreBoundingBoxConverter bconverter(this); 1327 1328 // load the view cells assigning the found objects to the pvss1326 BvhBoundingBoxConverter bconverter(this); 1327 1328 // load the view cells and assigns the objects in the pvs to 1329 // the scene objects using the bounding boxes 1329 1330 mViewCellsManager = 1330 1331 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, false, &bconverter); 1331 1332 1332 1333 return (mViewCellsManager != NULL); 1333 #endif1334 1334 } 1335 1335 //------------------------------------------------------------------------- 1336 1336 void BvHierarchySceneManager::applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc, 1337 1337 const bool load) 1338 { // NOTE: should not happen, rather apply view cell representing unbounded space then 1338 { // NOTE: should not happen, rather apply view cell 1339 // representing unbounded space then 1339 1340 if (!vc) 1340 { 1341 // set everything visible for savety 1341 { // set everything visible for savety 1342 1342 SetObjectsVisible(true); 1343 1344 1343 return; 1345 1344 } … … 1348 1347 oit_end = vc->GetPvs().mEntries.end(); 1349 1348 1349 ////////////// 1350 1350 //-- PVS of view cell 1351 1351 for (oit = vc->GetPvs().mEntries.begin(); oit != oit_end; ++ oit)
Note: See TracChangeset
for help on using the changeset viewer.