Ignore:
Timestamp:
03/06/06 09:17:09 (19 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/scripts/Plugin_VisibilitySceneManager.vcproj

    r672 r675  
    150150                                Filter=""> 
    151151                                <File 
     152                                        RelativePath="..\include\OgreOcclusionCullingSceneManager.h"> 
     153                                </File> 
     154                                <File 
    152155                                        RelativePath="..\include\OgreOctreeHierarchyInterface.h"> 
    153156                                </File> 
     
    167170                                <File 
    168171                                        RelativePath="..\src\OgreBspHierarchyInterface.cpp"> 
     172                                </File> 
     173                                <File 
     174                                        RelativePath="..\src\OgreOcclusionCullingSceneManager.cpp"> 
    169175                                </File> 
    170176                                <File 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilityTerrainSceneManager.cpp

    r347 r675  
    1 #include "OgreVisibilityTerrainSceneManager.h" 
     1#include "OgreOcclusionCullingSceneManager.h" 
    22#include "OgreVisibilityOptionsManager.h" 
    33#include <OgreMath.h> 
     
    1414 
    1515//----------------------------------------------------------------------- 
    16 VisibilityTerrainSceneManager::VisibilityTerrainSceneManager( 
     16OcclusionCullingSceneManager::OcclusionCullingSceneManager( 
    1717                                                        GtpVisibility::VisibilityManager *visManager):  
    1818mVisibilityManager(visManager),  
     
    4545} 
    4646//----------------------------------------------------------------------- 
    47 void VisibilityTerrainSceneManager::InitDepthPass() 
     47void OcclusionCullingSceneManager::InitDepthPass() 
    4848{ 
    4949        MaterialPtr depthMat = MaterialManager::getSingleton().getByName("Visibility/DepthPass"); 
     
    6666} 
    6767//----------------------------------------------------------------------- 
    68 VisibilityTerrainSceneManager::~VisibilityTerrainSceneManager() 
     68OcclusionCullingSceneManager::~OcclusionCullingSceneManager() 
    6969{ 
    7070        OGRE_DELETE(mHierarchyInterface); 
    7171} 
    7272//----------------------------------------------------------------------- 
    73 void VisibilityTerrainSceneManager::InitItemBufferPass() 
     73void OcclusionCullingSceneManager::InitItemBufferPass() 
    7474{ 
    7575        MaterialPtr itemBufferMat = MaterialManager::getSingleton(). 
     
    9595} 
    9696//------------------------------------------------------------------------- 
    97 void VisibilityTerrainSceneManager::setWorldGeometry( const String& filename ) 
     97void OcclusionCullingSceneManager::setWorldGeometry( const String& filename ) 
    9898{ 
    9999    // Clear out any existing world resources (if not default) 
     
    124124 
    125125//----------------------------------------------------------------------- 
    126 void VisibilityTerrainSceneManager::PrepareVisualization(Camera *cam) 
     126void OcclusionCullingSceneManager::PrepareVisualization(Camera *cam) 
    127127{ 
    128128        // add player camera for visualization purpose 
     
    173173} 
    174174//----------------------------------------------------------------------- 
    175 Pass *VisibilityTerrainSceneManager::setPass(Pass* pass) 
     175Pass *OcclusionCullingSceneManager::setPass(Pass* pass) 
    176176{ 
    177177        // TODO: setting vertex program is not efficient 
     
    236236} 
    237237//----------------------------------------------------------------------- 
    238 void VisibilityTerrainSceneManager::_findVisibleObjects(Camera* cam, 
     238void OcclusionCullingSceneManager::_findVisibleObjects(Camera* cam, 
    239239                                                                                                                bool onlyShadowCasters) 
    240240{ 
     
    266266} 
    267267//----------------------------------------------------------------------- 
    268 void VisibilityTerrainSceneManager::_renderVisibleObjects() 
     268void OcclusionCullingSceneManager::_renderVisibleObjects() 
    269269{ 
    270270 
     
    354354                if (mUseDepthPass) 
    355355                { 
    356                         for (NodeList::iterator it = mVisible.begin(); it != mVisible.end(); ++it) 
     356                        for (NodeList::iterator it = mVisible.begin(); it != mVisible.end(); ++ it) 
    357357                        { 
    358358                                (*it)->_addToRenderQueue(mCameraInProgress, getRenderQueue(), false); 
     
    381381 
    382382//----------------------------------------------------------------------- 
    383 void VisibilityTerrainSceneManager::_updateSceneGraph(Camera* cam) 
     383void OcclusionCullingSceneManager::_updateSceneGraph(Camera* cam) 
    384384{ 
    385385        mVisibilityManager->GetCullingManager()->SetHierarchyInterface(mHierarchyInterface); 
     
    389389} 
    390390//----------------------------------------------------------------------- 
    391 bool VisibilityTerrainSceneManager::setOption(const String & key, const void * val) 
     391bool OcclusionCullingSceneManager::setOption(const String & key, const void * val) 
    392392{ 
    393393        if (key == "UseDepthPass") 
     
    482482} 
    483483//----------------------------------------------------------------------- 
    484 bool VisibilityTerrainSceneManager::getOption(const String & key, void *val) 
     484bool OcclusionCullingSceneManager::getOption(const String & key, void *val) 
    485485{ 
    486486        if (key == "NumHierarchyNodes") 
     
    494494} 
    495495//----------------------------------------------------------------------- 
    496 bool VisibilityTerrainSceneManager::getOptionValues(const String & key,  
     496bool OcclusionCullingSceneManager::getOptionValues(const String & key,  
    497497                                                                                                        StringVector &refValueList) 
    498498{ 
     
    500500} 
    501501//----------------------------------------------------------------------- 
    502 bool VisibilityTerrainSceneManager::getOptionKeys(StringVector & refKeys) 
     502bool OcclusionCullingSceneManager::getOptionKeys(StringVector & refKeys) 
    503503{ 
    504504        return VisibilityOptionsManager(mVisibilityManager, mHierarchyInterface). 
     
    506506} 
    507507//----------------------------------------------------------------------- 
    508 void VisibilityTerrainSceneManager::setVisibilityManager(GtpVisibility:: 
     508void OcclusionCullingSceneManager::setVisibilityManager(GtpVisibility:: 
    509509                                                                                                                 VisibilityManager *visManager) 
    510510{ 
     
    512512} 
    513513//----------------------------------------------------------------------- 
    514 GtpVisibility::VisibilityManager *VisibilityTerrainSceneManager::getVisibilityManager( void ) 
     514GtpVisibility::VisibilityManager *OcclusionCullingSceneManager::getVisibilityManager( void ) 
    515515{ 
    516516        return mVisibilityManager; 
    517517} 
    518518//----------------------------------------------------------------------- 
    519 void VisibilityTerrainSceneManager::WriteLog() 
     519void OcclusionCullingSceneManager::WriteLog() 
    520520{ 
    521521        std::stringstream d; 
     
    535535} 
    536536//----------------------------------------------------------------------- 
    537 void VisibilityTerrainSceneManager::renderObjects( 
     537void OcclusionCullingSceneManager::renderObjects( 
    538538        const RenderPriorityGroup::TransparentRenderablePassList& objs,  
    539539    bool doLightIteration, const LightList* manualLightList) 
     
    546546} 
    547547//----------------------------------------------------------------------- 
    548 bool VisibilityTerrainSceneManager::validatePassForRendering(Pass* pass) 
     548bool OcclusionCullingSceneManager::validatePassForRendering(Pass* pass) 
    549549{ 
    550550        // skip all but first pass if we are doing the depth pass 
     
    553553                return false; 
    554554        } 
     555 
    555556        return SceneManager::validatePassForRendering(pass); 
    556557} 
    557558//----------------------------------------------------------------------- 
    558 void VisibilityTerrainSceneManager::renderQueueGroupObjects(RenderQueueGroup* pGroup) 
     559void OcclusionCullingSceneManager::renderQueueGroupObjects(RenderQueueGroup* pGroup) 
    559560{ 
    560561        if (!mIsItemBufferPhase) 
     
    575576} 
    576577//----------------------------------------------------------------------- 
    577 void VisibilityTerrainSceneManager::RenderItemBuffer(RenderPriorityGroup* pGroup) 
     578void OcclusionCullingSceneManager::RenderItemBuffer(RenderPriorityGroup* pGroup) 
    578579{ 
    579580        // Do solids 
     
    632633} 
    633634//----------------------------------------------------------------------- 
    634 void VisibilityTerrainSceneManager::RenderSingleObjectForItemBuffer(Renderable *rend, Pass *pass) 
     635void OcclusionCullingSceneManager::RenderSingleObjectForItemBuffer(Renderable *rend, Pass *pass) 
    635636{ 
    636637        static LightList nullLightList; 
     
    677678} 
    678679//----------------------------------------------------------------------- 
    679 GtpVisibility::VisibilityManager *VisibilityTerrainSceneManager::GetVisibilityManager() 
     680GtpVisibility::VisibilityManager *OcclusionCullingSceneManager::GetVisibilityManager() 
    680681{ 
    681682        return mVisibilityManager; 
    682683} 
    683684//----------------------------------------------------------------------- 
    684 void VisibilityTerrainSceneManager::InitVisibilityCulling(Camera *cam) 
     685void OcclusionCullingSceneManager::InitVisibilityCulling(Camera *cam) 
    685686{ 
    686687        // reset culling manager stats 
     
    742743        // possible two cameras (one for culling, one for rendering) 
    743744        mHierarchyInterface->InitTraversal(mCameraInProgress,  
    744                                                         mCullCamera ? getCamera("CullCamera") : NULL, 
    745                                                         mLeavePassesInQueue); 
     745                                                                           mCullCamera ? getCamera("CullCamera") : NULL, 
     746                                                                           mLeavePassesInQueue); 
    746747                 
    747748        //std::stringstream d; d << "leave passes in queue: " << mLeavePassesInQueue;LogManager::getSingleton().logMessage(d.str()); 
    748749} 
    749750//----------------------------------------------------------------------- 
    750 OctreeHierarchyInterface *VisibilityTerrainSceneManager::GetHierarchyInterface() 
     751OctreeHierarchyInterface *OcclusionCullingSceneManager::GetHierarchyInterface() 
    751752{ 
    752753        return mHierarchyInterface; 
    753754} 
    754755//----------------------------------------------------------------------- 
    755 void VisibilityTerrainSceneManager::endFrame() 
     756void OcclusionCullingSceneManager::endFrame() 
    756757{ 
    757758        TerrainRenderable::ResetRenderLevelIndex(); 
    758759} 
    759760//----------------------------------------------------------------------- 
    760 Entity* VisibilityTerrainSceneManager::createEntity(const String& entityName,  
     761Entity* OcclusionCullingSceneManager::createEntity(const String& entityName,  
    761762                                                                                                        const String& meshName) 
    762763{ 
     
    774775} 
    775776//----------------------------------------------------------------------- 
    776 void VisibilityTerrainSceneManager::renderAdditiveStencilShadowedQueueGroupObjects(RenderQueueGroup* pGroup) 
     777void OcclusionCullingSceneManager::renderAdditiveStencilShadowedQueueGroupObjects(RenderQueueGroup* pGroup) 
    777778{ 
    778779        // only render solid passes during hierarchical culling 
     
    806807} 
    807808//----------------------------------------------------------------------- 
    808 void VisibilityTerrainSceneManager::renderModulativeStencilShadowedQueueGroupObjects(RenderQueueGroup* pGroup) 
     809void OcclusionCullingSceneManager::renderModulativeStencilShadowedQueueGroupObjects(RenderQueueGroup* pGroup) 
    809810{ 
    810811   if (mIsHierarchicalCulling) 
Note: See TracChangeset for help on using the changeset viewer.