Ignore:
Timestamp:
07/27/06 13:00:41 (18 years ago)
Author:
szydlowski
Message:

Added KdTreeSceneManager? to Plugin_VisibilitySceneManager (OnlineCullingCHC)
The KdTreeSceneManager? features view frustum culling only so far, occlusion culling will be implemented soon
Also added a test application for the KdTreeSceneManager? to App/Demos/Vis?

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
Files:
3 added
1 edited

Legend:

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

    r1153 r1163  
    2626//#include <OgreVisibilityTerrainSceneManager.h> 
    2727#include <OgreOcclusionCullingSceneManager.h> 
     28#include <OgreKdTreeSceneManager.h> 
    2829 
    2930//#include <OgreHeightmapTerrainPageSource.h> 
     
    4142//VisibilityTerrainSceneManagerFactory *visibilityTerrainPlugin; 
    4243OcclusionCullingSceneManagerFactory *occlusionCullingPlugin; 
     44KdTreeSceneManagerFactory *kdTreeFactory; 
    4345 
    4446//----------------------------------------------------------------------- 
     
    5254        //visibilityTerrainPlugin = new VisibilityTerrainSceneManagerFactory(visManager); 
    5355        occlusionCullingPlugin = new OcclusionCullingSceneManagerFactory(visManager); 
     56        kdTreeFactory = new KdTreeSceneManagerFactory(); 
    5457        // Construct listener manager singleton 
    5558        new TerrainPageSourceListenerManager(); 
     
    5861        //Root::getSingleton().addSceneManagerFactory(visibilityTerrainPlugin); 
    5962        Root::getSingleton().addSceneManagerFactory(occlusionCullingPlugin); 
     63        Root::getSingleton().addSceneManagerFactory(kdTreeFactory); 
    6064} 
    6165//----------------------------------------------------------------------- 
     
    6468        //Root::getSingleton().removeSceneManagerFactory(visibilityTerrainPlugin); 
    6569        Root::getSingleton().removeSceneManagerFactory(occlusionCullingPlugin); 
     70        Root::getSingleton().removeSceneManagerFactory(kdTreeFactory); 
    6671        // destroy listener manager 
    6772        delete TerrainPageSourceListenerManager::getSingletonPtr(); 
     
    7580        //delete visibilityTerrainPlugin; 
    7681        delete occlusionCullingPlugin; 
     82        delete kdTreeFactory; 
    7783 
    7884        delete visManager; 
Note: See TracChangeset for help on using the changeset viewer.