Changeset 1275 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 08/24/06 18:01:30 (18 years ago)
- 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 17 17 "Coherent Hierarchical Culling", 18 18 "View Frustum Culling", 19 "Stop and Wait Culling" 19 "Stop and Wait Culling", 20 "Standard Rendering" 20 21 }; 21 22 … … 25 26 "CHC", 26 27 "VFC", 27 "SWC" 28 "SWC", 29 "DEF" 28 30 }; 29 31 … … 972 974 void TerrainFrameListener::nextAlgorithm() 973 975 { 976 // possible algorithms: 3 culling algorithms + standard rendering 974 977 mCurrentAlgorithm = (mCurrentAlgorithm + 1) % 975 GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS;978 (GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS + 1); 976 979 applyCurrentAlgorithm(); 977 980 } … … 992 995 void TerrainFrameListener::applyCurrentAlgorithm() 993 996 { 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); 994 1010 mAlgorithmInfo->setCaption(": " + msAlgorithmCaptions[mCurrentAlgorithm]); 995 mSceneMgr->setOption("Algorithm", &mCurrentAlgorithm);996 1011 997 1012 if (1) … … 1179 1194 if (mApplication->msShowHillyTerrain) 1180 1195 return; 1181 LogManager::getSingleton().logMessage("here533"); 1196 1182 1197 mUseViewCells = !mUseViewCells; 1183 1198 … … 1196 1211 std::stringstream d; 1197 1212 d << "loading view cells failed"; 1198 LogManager::getSingleton().logMessage("here7");1199 1213 LogManager::getSingleton().logMessage(d.str()); 1200 1214 } -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r1265 r1275 73 73 <Tool 74 74 Name="VCCLCompilerTool" 75 Optimization="3" 76 GlobalOptimizations="TRUE" 77 InlineFunctionExpansion="2" 78 FavorSizeOrSpeed="1" 79 OptimizeForProcessor="3" 80 OptimizeForWindowsApplication="TRUE" 75 81 AdditionalIncludeDirectories=""$(OGRE_PATH)\Dependencies\include";"$(OGRE_PATH)\OgreMain\include";"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\Dependencies\include\CEGUI";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\include";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 76 82 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" … … 89 95 LinkIncremental="1" 90 96 AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;"..\..\..\..\..\Lib\Vis\Preprocessing\lib\$(ConfigurationName)"" 91 GenerateDebugInformation=" TRUE"97 GenerateDebugInformation="FALSE" 92 98 SubSystem="2" 93 99 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.