Ignore:
Timestamp:
04/19/05 09:12:55 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/TestCullingTerrain/TestCullingTerrainApplication.cpp

    r48 r51  
    4646void TestCullingTerrainApplication::createScene(void) 
    4747{ 
    48         Plane waterPlane; 
    4948        // Set ambient light 
    5049        mSceneMgr->setAmbientLight(ColourValue(0.5, 0.5, 0.5)); 
     
    6160        // because the vertex program picked will be different 
    6261        ColourValue fadeColour(0.93, 0.86, 0.76); 
     62        mWindow->getViewport(0)->setBackgroundColour(fadeColour); 
    6363        //mSceneMgr->setFog( FOG_LINEAR, fadeColour, .001, 500, 1000); 
    6464    //mSceneMgr->setFog( FOG_EXP, fadeColour, 0.005 ); 
    6565 
    66         mWindow->getViewport(0)->setBackgroundColour(fadeColour); 
     66         
    6767 
    6868        // Create a skybox 
    6969    //mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox", 500, false); 
    7070        //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);*/ 
    7180 
    7281        std::string terrain_cfg("terrain.cfg"); 
     
    8190        } 
    8291 
    83 /*      // Define the required skyplane 
    84         Plane plane; 
    85         // 5000 world units from the camera 
    86         plane.d = 5000; 
    87         // Above the camera, facing down 
    88         plane.normal = -Vector3::UNIT_Y; 
    89         // Create the plane 10000 units wide, tile the texture 3 times 
    90     mSceneMgr->setSkyPlane(true, plane, "Examples/SpaceSkyPlane",10000,3);*/ 
    91  
    9292        // Set a nice viewpoint 
    9393        mCamera->setPosition(707,2500,528); 
    9494        mCamera->setOrientation(Quaternion(-0.3486, 0.0122, 0.9365, 0.0329)); 
    9595 
    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" ); 
    10098        SceneNode *robotNode = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode", Vector3( 750, 25, 600 )); 
    10199        robotNode->attachObject( robotEnt ); 
Note: See TracChangeset for help on using the changeset viewer.