Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4621 in orxonox.OLD


Ignore:
Timestamp:
Jun 13, 2005, 2:29:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: SkyBox now loads property size

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4620 r4621  
    458458  localCamera->setParentMode(PNODE_MOVEMENT);
    459459  localCamera->setClipRegion(1, 10000.0);
    460   this->sky->setSize(10000.0);
    461460  this->localPlayer->setParentMode(PNODE_ALL);
    462461  Vector* cameraOffset = new Vector (0, 5, -10);
     
    641640
    642641        // Create SkySphere
    643 //         this->sky = new Skysphere("pictures/sky-replace.jpg");
    644 //         this->sky->setName("SkySphere");
    645 //         this->spawn(this->sky);
     642        this->sky = new Skysphere("pictures/sky-replace.jpg");
     643        this->sky->setName("SkySphere");
     644        this->spawn(this->sky);
    646645        this->localCamera->addChild(this->sky);
    647646        this->sky->setParentMode(PNODE_MOVEMENT);
     
    10441043          this->dt = 10;
    10451044        }
    1046       //this->timeSlice (dt);
    1047 
    1048       /* function to let all entities tick (iterate through list) */
     1045
    10491046      this->dtS = (float)this->dt / 1000.0;
    10501047      this->gameTime += this->dtS;
  • orxonox/trunk/src/story_entities/world.h

    r4620 r4621  
    2727class PilotNode;
    2828class EventHandler;
    29 class SkyBox;
    3029
    3130//! The game world Interface
     
    121120  ParticleEngine* particleEngine;     //!< The ParticleEngine of the World.
    122121  Camera* localCamera;                //!< The current Camera
    123   SkyBox* sky;                        //!< The Environmental Heaven of orxonox \todo insert this to environment insted
     122  WorldEntity* sky;                   //!< The Environmental Heaven of orxonox \todo insert this to environment insted
    124123  LightManager* lightMan;             //!< The Lights of the Level
    125124  Terrain* terrain;                   //!< The Terrain of the World.
  • orxonox/trunk/src/world_entities/skybox.cc

    r4620 r4621  
    6262
    6363  LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture)
    64     .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
     64      .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
     65
     66  LoadParam<SkyBox>(root, "Size", this, &SkyBox::setSize)
     67      .describe("Sets the Size of the SkyBox (normally this should be 90% of the maximal viewing Distance).");
    6568}
    6669
     
    6972  this->setClassID(CL_SKYBOX, "SkyBox");
    7073
    71   this->size = 1900.0;
     74  this->size = 100.0;
    7275
    7376  this->skyModel = NULL;
     
    158161/**
    159162   \param size The new size of the SkyBox
     163
     164 * do not forget to rebuild the SkyBox after this.
    160165*/
    161166void SkyBox::setSize(float size)
    162167{
    163168  this->size = size;
    164   this->rebuild();
    165169}
    166170
Note: See TracChangeset for help on using the changeset viewer.