Ignore:
Timestamp:
05/13/05 08:23:30 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreVisibilityOctreeSceneManager.cpp

    r94 r96  
    2121        //mShowBoxes = true; 
    2222 
    23         mMaxDepth = 20; 
     23        // TODO: find reasonable value for max depth 
     24        mMaxDepth = 50; 
    2425} 
    2526//----------------------------------------------------------------------- 
     
    3132void VisibilityOctreeSceneManager::_renderVisibleObjects() 
    3233{ 
    33         Camera *cullCam = NULL; 
    34  
    35         if(mCullCamera) cullCam = getCamera("CullCamera"); 
    36          
    37         mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, cullCam); 
     34        // two cameras (one for culling, one for rendering) 
     35        mHierarchyInterface->InitFrame(mOctree, mCameraInProgress,  
     36                                                        mCullCamera ? getCamera("CullCamera") : NULL); 
    3837        mVisibilityManager->GetCullingManager()->InitFrame(); 
    3938 
     39        // standard scenemanager rendering without hierarchical culling 
    4040        if(!mUseCulling) 
    4141        {        
Note: See TracChangeset for help on using the changeset viewer.