Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10473 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 29, 2007, 12:55:48 AM (18 years ago)
Author:
patrick
Message:

more cameara bugs fixed

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r10456 r10473  
    452452
    453453    // tick camera first
    454     State::getCamera()->tick(this->dtS);
     454    CameraMan* man = State::getCameraman();
     455    (man->getCurrentCam())->tick(this->dtS);
    455456    // TICK everything
    456457    for (i = 0; i < this->dataTank->tickLists.size(); ++i)
     
    587588void GameWorld::applyCameraSettings()
    588589{
    589 
    590   State::getCamera()->apply ();
    591   State::getCamera()->project ();
     590  CameraMan* man = State::getCameraman();
     591  man->getCurrentCam()->apply ();
     592  man->getCurrentCam()->project ();
    592593  GraphicsEngine::storeMatrices();
    593594}
  • trunk/src/world_entities/cameraman.cc

    r10463 r10473  
    1 /*
     1  /*
    22   orxonox - the future of 3D-vertical-scrollers
    33
  • trunk/src/world_entities/cameraman.h

    r10464 r10473  
    5353    float getCurrCameraCoorY();
    5454    float getCurrCameraCoorZ();
    55     const Camera* getCurrentCam() { return this->currentCam; }
     55    const Camera* getCurrentCam() const { return this->currentCam; }
     56    Camera* getCurrentCam() { return this->currentCam; }
    5657    bool cameraIsInVector(Camera* camera);
    5758
  • trunk/src/world_entities/effects/billboard.cc

    r10433 r10473  
    2222#include "glincl.h"
    2323#include "state.h"
    24 
     24#include "cameraman.h"
     25#include "camera.h"
    2526
    2627#include "debug.h"
     
    133134  this->material->select();
    134135
    135   const PNode* camera = State::getCameraNode();  //!< @todo MUST be different
     136  const CameraMan* man = State::getCameraman();
     137  const Camera* camera = man->getCurrentCam(); //!< @todo MUST be different
    136138  Vector cameraPos = camera->getAbsCoor();
    137   Vector cameraTargetPos = State::getCameraTargetNode()->getAbsCoor();
     139  Vector cameraTargetPos = camera->getAbsCoor();
    138140  Vector view = cameraTargetPos - cameraPos;
    139141  Vector up = Vector(0, 1, 0);
  • trunk/src/world_entities/planet.cc

    r10432 r10473  
    5858  PrimitiveModel* model = new PrimitiveModel(PRIM_SPHERE, this->size, 50);
    5959  this->setModel(model);
    60 
    61   this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 1, 50);
    6260}
    6361
  • trunk/src/world_entities/planet.h

    r10432 r10473  
    4444
    4545  Model*          cloudModel;      //!< the model for the cloud
    46   Billboard*      halo;            //!< halo around the planet
    4746
    4847  bool            bClouds;         //!< true if there are clouds defined
Note: See TracChangeset for help on using the changeset viewer.