Ignore:
Timestamp:
10/10/06 01:27:11 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchySceneManager.cpp

    r1593 r1595  
    2727{ 
    2828 
    29 BvHierarchySceneManager::BvHierarchySceneManager(const String& name, GtpVisibility::VisibilityManager *vm): 
     29BvHierarchySceneManager::BvHierarchySceneManager(const String& name,  
     30                                                                                                 GtpVisibility::VisibilityManager *vm): 
    3031SceneManager(name),  
    3132mVisibilityManager(vm),  
     
    13231324        // converter between view cell ids and Ogre entites  
    13241325        GtpVisibilityPreprocessor::IndexedBoundingBoxContainer iboxes; 
    1325 #if 0 
    1326         OgreBoundingBoxConverter bconverter(this); 
    1327  
    1328         // load the view cells assigning the found objects to the pvss 
     1326        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 
    13291330        mViewCellsManager =  
    13301331                GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, false, &bconverter); 
    13311332 
    13321333        return (mViewCellsManager != NULL); 
    1333 #endif 
    13341334} 
    13351335//------------------------------------------------------------------------- 
    13361336void BvHierarchySceneManager::applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc,  
    13371337                                                                                                        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 
    13391340        if (!vc)  
    1340         {        
    1341                 // set everything visible for savety 
     1341        {       // set everything visible for savety 
    13421342                SetObjectsVisible(true); 
    1343  
    13441343                return; 
    13451344        } 
     
    13481347                oit_end = vc->GetPvs().mEntries.end(); 
    13491348 
     1349        ////////////// 
    13501350        //-- PVS of view cell 
    13511351        for (oit = vc->GetPvs().mEntries.begin(); oit != oit_end; ++ oit) 
Note: See TracChangeset for help on using the changeset viewer.