Changeset 2290 for GTP/trunk/App
- Timestamp:
- 03/23/07 18:43:12 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp
r2282 r2290 17 17 "Coherent Hierarchical Culling", 18 18 "View Frustum Culling", 19 "Random Update Culling", 19 20 "Stop and Wait Culling", 20 21 "Standard Rendering" … … 25 26 { 26 27 "CHC", 27 "VFC", 28 "VFC", 29 "RUC", 28 30 "SWC", 29 31 "DEF" … … 288 290 mTimeFrameEnded = mTimeFrameStarted = mTimer->getMilliseconds(); 289 291 290 if (0 && (mSceneMgr->getSceneNode("robot Entity1Node")->291 getAttachedObject(0)->getMovableType() == "Entity"))292 Ogre::LogManager::getSingleton().logMessage("found entity");293 294 292 // init view cell parameters 295 //mSceneMgr->setOption("UseViewCells", &mUseViewCells);296 293 mSceneMgr->setOption("UseVisibilityFilter", &mUseVisibilityFilter); 297 294 … … 487 484 488 485 // important for visualization => draw octree bounding boxes 489 if (0) 490 mSceneMgr->setOption("ShowOctree", &mShowVisualization); 486 if (0) mSceneMgr->setOption("ShowOctree", &mShowVisualization); 491 487 492 488 /////////////// … … 600 596 itemBufferMode); 601 597 602 //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false);603 604 598 visManager->SetQueryManager(mQueryManager); 605 599 … … 1255 1249 void TerrainFrameListener::toggleShowViewCells() 1256 1250 { 1257 if (0) // tmp matt 1258 { 1259 mShowViewCells = !mShowViewCells; 1260 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1261 } 1262 else 1263 { 1264 unsigned int numObjects; 1265 mSceneMgr->getOption("VisibleObjects", &numObjects); 1266 } 1251 mShowViewCells = !mShowViewCells; 1252 mSceneMgr->setOption("ShowViewCells", &mShowViewCells); 1267 1253 } 1268 1254 //----------------------------------------------------------------------- -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r2279 r2290 21 21 Name="VCCLCompilerTool" 22 22 Optimization="0" 23 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_ ADDONS_PATH)\dotsceneoctree\PlugIns\DotSceneManager\include";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";..\..\GtpVisibility\include;..\..\Ogre\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include"23 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";..\..\GtpVisibility\include;..\..\Ogre\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 24 24 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_DEBUG;WIN32;_STLP_DEBUG;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 25 25 MinimalRebuild="TRUE" … … 226 226 <Configuration 227 227 Name="Release Internal|Win32" 228 OutputDirectory=" $(ConfigurationName)"229 IntermediateDirectory=" $(ConfigurationName)"228 OutputDirectory="..\bin\Release" 229 IntermediateDirectory="..\obj\Release" 230 230 ConfigurationType="1" 231 231 CharacterSet="2"> … … 241 241 OptimizeForProcessor="3" 242 242 OptimizeForWindowsApplication="TRUE" 243 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;"$(LIBXML_HOME)\include";d:\work\Collada\include "244 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE "243 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;"$(LIBXML_HOME)\include";d:\work\Collada\include;..\..\..\..\..\Lib\Vis\Preprocessing\src\Timer" 244 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 245 245 StringPooling="TRUE" 246 246 RuntimeLibrary="2" … … 259 259 LinkIncremental="1" 260 260 AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\Release";"$(OGRE_PATH)\OgreMain\Lib\Release";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";..\..\Ogre\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\Release;..\..\..\..\..\Lib\Vis\Preprocessing\lib\Release" 261 GenerateDebugInformation=" FALSE"261 GenerateDebugInformation="TRUE" 262 262 SubSystem="2" 263 263 OptimizeReferences="2" -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r2279 r2290 492 492 493 493 // terrain creation 494 if (1)//||msShowHillyTerrain) 495 { 496 std::string terrain_cfg("terrainCulling.cfg"); 497 mSceneMgr->setWorldGeometry(terrain_cfg); 498 499 // was terrain loaded? 500 mSceneMgr->getOption("ShowTerrain", &msShowHillyTerrain); 501 } 502 494 std::string terrain_cfg("terrainCulling.cfg"); 495 mSceneMgr->setWorldGeometry(terrain_cfg); 496 497 // was terrain loaded? 498 mSceneMgr->getOption("ShowTerrain", &msShowHillyTerrain); 499 503 500 // hack view point for terrain 504 501 if (msShowHillyTerrain) … … 508 505 } 509 506 510 //////507 511 508 //-- CEGUI setup 512 509 setupGui(); … … 515 512 mSceneMgr->setShadowTextureSettings(1024, 2); 516 513 mSceneMgr->setShadowColour(ColourValue(0.5, 0.5, 0.5)); 514 517 515 518 516 ////////////// … … 534 532 { 535 533 // the objects are generated randomly distributed over the terrain 536 if (1) generateScene( 500, 0); // create robots537 if (0) generateScene(100, 1); // create trees538 if ( 1) generateScene(1000, 2); // create ninjas534 if (1) generateScene(1500, 0); // create robots 535 if (0) generateScene(100, 1); // create ninjas 536 if (0) generateScene(1000, 2); // create trees 539 537 } 540 538 } … … 627 625 this); 628 626 627 mTerrainFrameListener->setPriority(10); 629 628 mTerrainFrameListener->setPriority(10); 630 629 mRoot->addFrameListener(mTerrainFrameListener); -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/scripts/TestKdTree.vcproj
r2279 r2290 264 264 <Configuration 265 265 Name="Release Internal|Win32" 266 OutputDirectory=" $(ConfigurationName)"267 IntermediateDirectory=" $(ConfigurationName)"266 OutputDirectory="..\bin\Release" 267 IntermediateDirectory="..\obj\Release" 268 268 ConfigurationType="1" 269 269 CharacterSet="2" … … 281 281 OptimizeForWindowsApplication="TRUE" 282 282 AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include" 283 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE "283 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 284 284 StringPooling="TRUE" 285 285 MinimalRebuild="TRUE" … … 295 295 <Tool 296 296 Name="VCLinkerTool" 297 AdditionalDependencies="OgreMain.lib IVReader.lib RTScene.lib RTWorld.lib"298 OutputFile="$(OutDir)/$(ProjectName).exe" 299 LinkIncremental="1" 300 AdditionalLibraryDirectories=""$(OGRE_PATH)\OgreMain\lib\ $(ConfigurationName)";"..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)""301 GenerateDebugInformation=" TRUE"297 AdditionalDependencies="OgreMain.lib IVReader.lib" 298 OutputFile="$(OutDir)/$(ProjectName).exe" 299 LinkIncremental="1" 300 AdditionalLibraryDirectories=""$(OGRE_PATH)\OgreMain\lib\Release";..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release" 301 GenerateDebugInformation="FALSE" 302 302 SubSystem="2" 303 303 OptimizeReferences="2"
Note: See TracChangeset
for help on using the changeset viewer.