Changeset 2361 for GTP/trunk/App/Demos/Vis/HillyTerrain
- Timestamp:
- 05/09/07 17:03:19 (18 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.