Changeset 2067


Ignore:
Timestamp:
01/31/07 08:31:27 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
Files:
2 edited

Legend:

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

    r2066 r2067  
    13291329        // the scene objects using the bounding boxes 
    13301330        mViewCellsManager =  
    1331                 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, false, &bconverter); 
     1331                GtpVisibilityPreprocessor::ViewCellsManager:: 
     1332                LoadViewCells(filename, &mObjects, false, &bconverter); 
    13321333 
    13331334        return (mViewCellsManager != NULL); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2066 r2067  
    432432                        GtpVisibilityPreprocessor::Intersectable *obj = entry.mObject; 
    433433 
    434                         if (obj->Type() ==  
     434                        if (obj->Type() !=  
    435435                                GtpVisibilityPreprocessor::Intersectable::ENGINE_INTERSECTABLE) 
     436                                continue; 
     437                         
     438                        EngineIntersectable *oi = static_cast<EngineIntersectable *>(obj); 
     439 
     440                        EntityContainer *entries = oi->GetItem(); 
     441                        EntityContainer::const_iterator eit, eit_end = entries->end(); 
     442 
     443                        for (eit = entries->begin(); eit != eit_end; ++ eit) 
    436444                        { 
    437                                 EngineIntersectable *oi = static_cast<EngineIntersectable *>(obj); 
    438  
    439                                 EntityContainer *entries = oi->GetItem(); 
    440                                 EntityContainer::const_iterator eit, eit_end = entries->end(); 
    441  
    442                                 for (eit = entries->begin(); eit != eit_end; ++ eit) 
    443                                 { 
    444                                         (*eit)->setUserAny(Any((int)0)); 
    445                                 } 
     445                                (*eit)->setUserAny(Any((int)0)); 
    446446                        } 
    447447                } 
     
    15751575        if (mViewCellsGeometryLoaded) return; 
    15761576 
    1577         GtpVisibilityPreprocessor::ViewCellContainer viewCells = mViewCellsManager->GetViewCells(); 
     1577        GtpVisibilityPreprocessor::ViewCellContainer viewCells =  
     1578                mViewCellsManager->GetViewCells(); 
    15781579 
    15791580        GtpVisibilityPreprocessor::ViewCellContainer::const_iterator it, it_end = viewCells.end(); 
     
    15821583                GtpVisibilityPreprocessor::ViewCell *viewCell = *it; 
    15831584 
    1584                 //std::stringstream str; 
    1585                 //str << "processing view cell with id : " << viewCell->GetId(); 
    1586                 //LogManager::getSingleton().logMessage(str.str()); 
    1587                 ManualObject *manual = OgreTypeConverter::ConvertToOgre(viewCell->GetMesh(), this); 
     1585                ManualObject *manual =  
     1586                        OgreTypeConverter::ConvertToOgre(viewCell->GetMesh(), this); 
    15881587                 
    15891588                if (manual) 
Note: See TracChangeset for help on using the changeset viewer.