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/OgreVisibilityTerrainSceneManager.cpp

    r94 r96  
    2222        //mDisplayNodes = true; 
    2323        //mShowBoundingBoxes = true; 
    24         mMaxDepth = 20; 
     24        mMaxDepth = 50; 
    2525} 
    2626//----------------------------------------------------------------------- 
     
    3232void VisibilityTerrainSceneManager::_renderVisibleObjects() 
    3333{ 
    34         Camera *cullCam = NULL; 
    35  
    36         // if two cameras (one for culling, one for visualization) 
    37         if(mCullCamera) 
    38                 cullCam = getCamera("CullCamera"); 
     34        // two cameras (one for culling, one for rendering) 
     35        mHierarchyInterface->InitFrame(mOctree, mCameraInProgress,  
     36                                                        mCullCamera ? getCamera("CullCamera") : NULL); 
     37        mVisibilityManager->GetCullingManager()->InitFrame(); 
    3938         
    40         if(cullCam && (mCameraInProgress != cullCam)) 
    41                 OutputDebugString("using cullcam\n"); 
    42         else 
    43                 OutputDebugString("not using cullcam\n"); 
    44  
    45         mHierarchyInterface->InitFrame(mOctree, mCameraInProgress, cullCam); 
    46         mVisibilityManager->GetCullingManager()->InitFrame(); 
    47  
     39        // standard scenemanager rendering without hierarchical culling 
    4840        if(!mUseCulling) 
    4941        {        
Note: See TracChangeset for help on using the changeset viewer.