Ignore:
Timestamp:
11/28/06 12:50:34 (18 years ago)
Author:
mattausch
Message:

changed scenemanager: options are directly given to it

File:
1 edited

Legend:

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

    r1595 r1816  
    13331333void KdTreeSceneManager::applyViewCellPvs(GtpVisibilityPreprocessor::ViewCell *vc,  
    13341334                                                                                                        const bool load) 
    1335 {       // NOTE: should not happen, rather apply view cell representing unbounded space then 
     1335{        
    13361336        if (!vc)  
    13371337        {        
    13381338                // set everything visible for savety 
     1339 
     1340                // NOTE: should not happen, rather apply view cell  
     1341                // representing unbounded space then 
    13391342                SetObjectsVisible(true); 
    1340  
    13411343                return; 
    13421344        } 
    13431345 
    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                } 
    13551359        } 
    13561360} 
Note: See TracChangeset for help on using the changeset viewer.