Ignore:
Timestamp:
02/06/07 20:33:48 (18 years ago)
Author:
mattausch
Message:

revived ogre engine pvs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h

    r2069 r2097  
    180180{ 
    181181        list<SceneNode *> sceneNodeList; 
    182                          
     182 
    183183        // find intersecting scene nodes to get candidates for intersection 
    184184    // note: this function has to be provided by scene manager 
     185 
    185186#if ENLARGE_NODE_BBOX 
    186187        // make search radius larger 
    187         AxisAlignedBox mybox = EnlargeBox(box); 
    188         mSceneMgr->findNodesIn(mybox, sceneNodeList, NULL); 
     188        AxisAlignedBox largebox = EnlargeBox(box); 
     189        mSceneMgr->findNodesIn(largebox, sceneNodeList, NULL); 
    189190 
    190191        list<SceneNode *>::const_iterator sit, sit_end = sceneNodeList.end(); 
    191192 
    192193        GtpVisibilityPreprocessor::AxisAlignedBox3 nodeBox =  
    193                 OgreTypeConverter::ConvertFromOgre(mybox); 
     194                OgreTypeConverter::ConvertFromOgre(largebox); 
    194195#else 
    195196 
     
    201202                OgreTypeConverter::ConvertFromOgre(box); 
    202203#endif 
    203          
     204 
    204205        // loop through the intersected scene nodes 
    205206        for (sit = sceneNodeList.begin(); sit != sceneNodeList.end(); ++ sit) 
     
    233234        } 
    234235} 
     236 
    235237#if USE_KD_PVS 
    236238//------------------------------------------------------------------------- 
     
    255257                EngineIntersectable *entry =  
    256258                        new EngineIntersectable(entryObjects); 
     259 
    257260                entry->SetId((*iit).first); 
    258261 
Note: See TracChangeset for help on using the changeset viewer.