Changeset 51 for trunk/VUT/OcclusionCullingSceneManager/TestCullingTerrain
- Timestamp:
- 04/19/05 09:12:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/TestCullingTerrain/TestCullingTerrainApplication.cpp
r48 r51 46 46 void TestCullingTerrainApplication::createScene(void) 47 47 { 48 Plane waterPlane;49 48 // Set ambient light 50 49 mSceneMgr->setAmbientLight(ColourValue(0.5, 0.5, 0.5)); … … 61 60 // because the vertex program picked will be different 62 61 ColourValue fadeColour(0.93, 0.86, 0.76); 62 mWindow->getViewport(0)->setBackgroundColour(fadeColour); 63 63 //mSceneMgr->setFog( FOG_LINEAR, fadeColour, .001, 500, 1000); 64 64 //mSceneMgr->setFog( FOG_EXP, fadeColour, 0.005 ); 65 65 66 mWindow->getViewport(0)->setBackgroundColour(fadeColour);66 67 67 68 68 // Create a skybox 69 69 //mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox", 500, false); 70 70 //mSceneMgr->setSkyDome( true, "Examples/CloudySky", 5, 8, 500, false ); 71 72 /* // Define the required skyplane 73 Plane plane; 74 // 5000 world units from the camera 75 plane.d = 5000; 76 // Above the camera, facing down 77 plane.normal = -Vector3::UNIT_Y; 78 // Create the plane 10000 units wide, tile the texture 3 times 79 mSceneMgr->setSkyPlane(true, plane, "Examples/SpaceSkyPlane",10000,3);*/ 71 80 72 81 std::string terrain_cfg("terrain.cfg"); … … 81 90 } 82 91 83 /* // Define the required skyplane84 Plane plane;85 // 5000 world units from the camera86 plane.d = 5000;87 // Above the camera, facing down88 plane.normal = -Vector3::UNIT_Y;89 // Create the plane 10000 units wide, tile the texture 3 times90 mSceneMgr->setSkyPlane(true, plane, "Examples/SpaceSkyPlane",10000,3);*/91 92 92 // Set a nice viewpoint 93 93 mCamera->setPosition(707,2500,528); 94 94 mCamera->setOrientation(Quaternion(-0.3486, 0.0122, 0.9365, 0.0329)); 95 95 96 //mRaySceneQuery = mSceneMgr->createRayQuery( 97 // Ray(mCamera->getPosition(), Vector3::NEGATIVE_UNIT_Y)); 98 99 /*Entity *robotEnt = mSceneMgr->createEntity( "Robot", "robot.mesh" ); 96 /* 97 Entity *robotEnt = mSceneMgr->createEntity( "Robot", "robot.mesh" ); 100 98 SceneNode *robotNode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode", Vector3( 750, 25, 600 )); 101 99 robotNode->attachObject( robotEnt );
Note: See TracChangeset
for help on using the changeset viewer.