Changeset 2361
- Timestamp:
- 05/09/07 17:03:19 (18 years ago)
- Location:
- GTP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r2359 r2361 419 419 mSunLight->setSpecularColour(1, 1, 1); 420 420 421 // it's VERY important to set fog before calling setWorldGeometry 421 //-- Fog 422 423 // NB it's VERY important to set this before calling setWorldGeometry 422 424 // because the vertex program picked will be different 423 425 ColourValue fadeColour(0.93, 0.86, 0.76); … … 472 474 { 473 475 // the objects are generated randomly distributed over the terrain 474 if (1) generateScene( 1000, 0); // create robots475 if (0) generateScene( 100, 1); // create ninjas476 if ( 1) generateScene(500, 2); // create trees476 if (1) generateScene(500, 0); // create robots 477 if (0) generateScene(300, 1); // create ninjas 478 if (0) generateScene(1000, 2); // create trees 477 479 } 478 480 int MaxDepth=30; … … 590 592 #else 591 593 592 //mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 593 mSceneMgr = mRoot->createSceneManager("BiHierarchySceneManager"); 594 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 595 596 //mSceneMgr = mRoot->createSceneManager("TerrainSceneManager"); 597 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 598 //mSceneMgr = mRoot->createSceneManager("BiHierarchySceneManager"); 594 599 //mSceneMgr = mRoot->createSceneManager("BiTreeTerrainSceneManager"); 595 600 … … 647 652 // place on the ground object 648 653 if (success) 649 { 650 mCamNode->setPosition(mCamNode->getPosition().x, 651 minVal + dist, 652 mCamNode->getPosition().z); 653 } 654 mCamNode->setPosition( 655 mCamNode->getPosition().x, 656 minVal + dist, 657 mCamNode->getPosition().z); 654 658 655 659 OGRE_DELETE(raySceneQuery); 656 657 660 return success; 658 661 } -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/scripts/TestKdTree.vcproj
r2353 r2361 86 86 OptimizeForWindowsApplication="TRUE" 87 87 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" 88 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE ;USE_VERBOSE_PVS"88 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 89 89 StringPooling="TRUE" 90 90 MinimalRebuild="TRUE" -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp
r1516 r2361 414 414 } 415 415 416 // added by matt 417 //mSceneMgr->setOption("RebuildBiHierarchy", NULL); 418 416 419 if (mSelectEntities & ENT_SPC) 417 420 { -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBiHierarchy.cpp
r2348 r2361 1150 1150 AxisAlignedBox minLefts[dim]; 1151 1151 AxisAlignedBox minRights[dim]; 1152 1153 bool LeftMod[dim];1154 bool RightMod[dim];1155 1152 1156 1153 AxisAlignedBox minLeft;
Note: See TracChangeset
for help on using the changeset viewer.