Ignore:
Timestamp:
08/24/06 18:01:42 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
Files:
3 edited

Legend:

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

    r1251 r1276  
    207207 
    208208        bool mDeleteQueueAfterRendering; 
     209 
     210        // normal terrain rendering 
     211        bool mNormalExecution; 
    209212}; 
    210213 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r1267 r1276  
    2121#include "OgreBoundingBoxConverter.h" 
    2222 
    23 // normal terrain rendering 
    24 const static NORMAL_RENDER_HACK = false; 
    2523 
    2624namespace Ogre { 
     
    5250mCurrentViewCell(NULL), 
    5351mElementaryViewCell(NULL), 
    54 mDeleteQueueAfterRendering(true) 
     52mDeleteQueueAfterRendering(true), 
     53mNormalExecution(false) 
    5554{ 
    5655        Ogre::LogManager::getSingleton().logMessage("creating occlusion culling scene manager"); 
     
    210209const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 
    211210{ 
    212         if (NORMAL_RENDER_HACK) 
     211        if (mNormalExecution) 
    213212        { 
    214213                return SceneManager::_setPass(pass); 
     
    287286                                                                                                                bool onlyShadowCasters) 
    288287{ 
    289         if (NORMAL_RENDER_HACK) 
     288        if (mNormalExecution) 
    290289        { 
    291290                OctreeSceneManager::_findVisibleObjects(cam, onlyShadowCasters); 
     
    328327void OcclusionCullingSceneManager::_renderVisibleObjects() 
    329328{ 
    330         if (NORMAL_RENDER_HACK) 
     329        if (mNormalExecution) 
    331330        { 
    332331                OctreeSceneManager::_renderVisibleObjects(); 
     
    462461void OcclusionCullingSceneManager::_updateSceneGraph(Camera* cam) 
    463462{ 
    464         if (NORMAL_RENDER_HACK) 
     463        if (mNormalExecution) 
    465464        { 
    466465                OctreeSceneManager::_updateSceneGraph(cam); 
     
    574573                } 
    575574 
     575                return true; 
     576        } 
     577        if (key == "NormalExecution") 
     578        {  
     579                mNormalExecution = *static_cast<const bool *>(val); 
    576580                return true; 
    577581        } 
     
    675679 
    676680        // Do transparents (always descending) 
    677                 if (NORMAL_RENDER_HACK || !mSkipTransparents) 
     681                if (mNormalExecution || !mSkipTransparents) 
    678682                { 
    679683                        renderObjects(pPriorityGrp->getTransparents(),  
     
    688692bool OcclusionCullingSceneManager::validatePassForRendering(Pass* pass) 
    689693{ 
    690         if (NORMAL_RENDER_HACK) 
     694        if (mNormalExecution) 
    691695        { 
    692696                return SceneManager::validatePassForRendering(pass); 
     
    710714                                                                                                                        QueuedRenderableCollection::OrganisationMode om) 
    711715{ 
    712         if (NORMAL_RENDER_HACK || !mIsItemBufferPhase) 
     716        if (mNormalExecution || !mIsItemBufferPhase) 
    713717        { 
    714718                TerrainSceneManager::_renderQueueGroupObjects(pGroup, om); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r1273 r1276  
    8787                                OmitFramePointers="TRUE" 
    8888                                EnableFiberSafeOptimizations="TRUE" 
    89                                 OptimizeForProcessor="2" 
     89                                OptimizeForProcessor="3" 
     90                                OptimizeForWindowsApplication="TRUE" 
    9091                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src" 
    9192                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
     
    111112                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;" 
    112113                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    113                                 GenerateDebugInformation="TRUE" 
     114                                GenerateDebugInformation="FALSE" 
    114115                                SubSystem="2" 
    115116                                OptimizeReferences="2" 
Note: See TracChangeset for help on using the changeset viewer.