Ignore:
Timestamp:
08/24/06 18:01:30 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r1271 r1275  
    1717        "Coherent Hierarchical Culling", 
    1818        "View Frustum Culling",  
    19         "Stop and Wait Culling" 
     19        "Stop and Wait Culling", 
     20        "Standard Rendering" 
    2021}; 
    2122 
     
    2526        "CHC", 
    2627        "VFC",  
    27         "SWC" 
     28        "SWC", 
     29        "DEF" 
    2830}; 
    2931 
     
    972974void TerrainFrameListener::nextAlgorithm() 
    973975{ 
     976        // possible algorithms: 3 culling algorithms + standard rendering 
    974977        mCurrentAlgorithm = (mCurrentAlgorithm + 1) %  
    975                 GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS; 
     978                (GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS + 1); 
    976979        applyCurrentAlgorithm(); 
    977980} 
     
    992995void TerrainFrameListener::applyCurrentAlgorithm() 
    993996{ 
     997        bool isNormalExecution; 
     998         
     999        if (mCurrentAlgorithm < GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS) 
     1000        { 
     1001                isNormalExecution = false; 
     1002                mSceneMgr->setOption("Algorithm", &mCurrentAlgorithm); 
     1003        } 
     1004        else 
     1005        {       // standard rendering without changed render queue flow 
     1006                isNormalExecution = true; 
     1007        } 
     1008         
     1009        mSceneMgr->setOption("NormalExecution", &isNormalExecution); 
    9941010        mAlgorithmInfo->setCaption(": " + msAlgorithmCaptions[mCurrentAlgorithm]); 
    995         mSceneMgr->setOption("Algorithm", &mCurrentAlgorithm); 
    9961011 
    9971012        if (1) 
     
    11791194        if (mApplication->msShowHillyTerrain) 
    11801195                return; 
    1181 LogManager::getSingleton().logMessage("here533"); 
     1196 
    11821197        mUseViewCells = !mUseViewCells; 
    11831198 
     
    11961211                        std::stringstream d; 
    11971212                        d << "loading view cells failed"; 
    1198                         LogManager::getSingleton().logMessage("here7"); 
    11991213                        LogManager::getSingleton().logMessage(d.str()); 
    12001214                } 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj

    r1265 r1275  
    7373                        <Tool 
    7474                                Name="VCCLCompilerTool" 
     75                                Optimization="3" 
     76                                GlobalOptimizations="TRUE" 
     77                                InlineFunctionExpansion="2" 
     78                                FavorSizeOrSpeed="1" 
     79                                OptimizeForProcessor="3" 
     80                                OptimizeForWindowsApplication="TRUE" 
    7581                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
    7682                                PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
     
    8995                                LinkIncremental="1" 
    9096                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;&quot;..\..\..\..\..\Lib\Vis\Preprocessing\lib\$(ConfigurationName)&quot;" 
    91                                 GenerateDebugInformation="TRUE" 
     97                                GenerateDebugInformation="FALSE" 
    9298                                SubSystem="2" 
    9399                                OptimizeReferences="2" 
Note: See TracChangeset for help on using the changeset viewer.