Changeset 41 for trunk/VUT/OcclusionCullingSceneManager/TestCulling
- Timestamp:
- 04/07/05 18:51:36 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.cpp
r34 r41 62 62 ColourValue fadeColour(0.93, 0.86, 0.76); 63 63 mSceneMgr->setFog( FOG_LINEAR, fadeColour, .001, 500, 1000); 64 //mSceneMgr->setFog( FOG_EXP, fadeColour, 0.005 ); 64 65 mWindow->getViewport(0)->setBackgroundColour(fadeColour); 66 67 // Create a skybox 68 //mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox", 500, false); 69 //mSceneMgr->setSkyDome( true, "Examples/CloudySky", 5, 8, 500, false ); 65 70 66 71 std::string terrain_cfg("terrain.cfg"); … … 70 75 mSceneMgr -> setWorldGeometry( terrain_cfg ); 71 76 // Infinite far plane? 72 if (mRoot->getRenderSystem()->getCapabilities()->hasCapability(RSC_INFINITE_FAR_PLANE))77 /* if (mRoot->getRenderSystem()->getCapabilities()->hasCapability(RSC_INFINITE_FAR_PLANE)) 73 78 { 74 79 mCamera->setFarClipDistance(0); 75 } 76 77 // Define the required skyplane80 }*/ 81 82 /* // Define the required skyplane 78 83 Plane plane; 79 84 // 5000 world units from the camera … … 81 86 // Above the camera, facing down 82 87 plane.normal = -Vector3::UNIT_Y; 88 // Create the plane 10000 units wide, tile the texture 3 times 89 mSceneMgr->setSkyPlane(true, plane, "Examples/SpaceSkyPlane",10000,3);*/ 83 90 84 91 // Set a nice viewpoint … … 89 96 Ray(mCamera->getPosition(), Vector3::NEGATIVE_UNIT_Y)); 90 97 91 // Create a skybox 92 // mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox"); 93 94 // CEGUI setup 95 setupGui(); 98 Entity *robotEnt = mSceneMgr->createEntity( "Robot", "robot.mesh" ); 99 SceneNode *robotNode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode", Vector3( 750, 25, 600 )); 100 robotNode->attachObject( robotEnt ); 101 robotNode->scale( .3, .3, .3 ); 102 robotNode->yaw( Degree( 160 ) ); 103 104 Entity *ogreEnt = mSceneMgr->createEntity( "Ogre", "ogrehead.mesh" ); 105 SceneNode *ogreNode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "Ogre", Vector3( 800, 50, 830 ) ); 106 ogreNode->attachObject( ogreEnt ); 107 ogreNode->scale(.2,.2,.2); 108 ogreNode->yaw( Degree( 20 ) ); 109 110 Entity *ogreEnt2 = mSceneMgr->createEntity( "Ogre2", "ogrehead.mesh" ); 111 SceneNode *ogreNode2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "Ogre2", Vector3( 700, 50, 730 ) ); 112 ogreNode2->attachObject( ogreEnt2 ); 113 ogreNode2->scale(.05,.05,.05); 114 ogreNode->yaw( Degree( 40 ) ); 115 116 // CEGUI setup 117 setupGui(); 96 118 } 97 119 //-----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.