Ignore:
Timestamp:
04/07/05 18:51:36 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.cpp

    r34 r41  
    6262        ColourValue fadeColour(0.93, 0.86, 0.76); 
    6363        mSceneMgr->setFog( FOG_LINEAR, fadeColour, .001, 500, 1000); 
     64 //mSceneMgr->setFog( FOG_EXP, fadeColour, 0.005 ); 
    6465        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 ); 
    6570 
    6671        std::string terrain_cfg("terrain.cfg"); 
     
    7075        mSceneMgr -> setWorldGeometry( terrain_cfg ); 
    7176        // Infinite far plane? 
    72         if (mRoot->getRenderSystem()->getCapabilities()->hasCapability(RSC_INFINITE_FAR_PLANE)) 
     77/*      if (mRoot->getRenderSystem()->getCapabilities()->hasCapability(RSC_INFINITE_FAR_PLANE)) 
    7378        { 
    7479                mCamera->setFarClipDistance(0); 
    75         } 
    76  
    77         // Define the required skyplane 
     80        }*/ 
     81 
     82/*      // Define the required skyplane 
    7883        Plane plane; 
    7984        // 5000 world units from the camera 
     
    8186        // Above the camera, facing down 
    8287        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);*/ 
    8390 
    8491        // Set a nice viewpoint 
     
    8996        Ray(mCamera->getPosition(), Vector3::NEGATIVE_UNIT_Y)); 
    9097 
    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(); 
    96118} 
    97119//----------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.