Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6772 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
Jan 26, 2006, 2:44:26 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the branche network back
merged with command
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6755:HEAD

absolutely no conficts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r6426 r6772  
    178178/**
    179179 *  initialize rendering perspective according to this camera
    180 
    181    This is called immediately before the rendering cycle starts, it sets all global
    182    rendering options as well as the GL_PROJECTION matrix according to the camera.
    183 */
     180 *
     181 * This is called immediately before the rendering cycle starts, it sets all global
     182 * rendering options as well as the GL_PROJECTION matrix according to the camera.
     183 */
    184184void Camera::apply ()
    185185{
     
    193193                 this->nearClip,
    194194                 this->farClip);
    195 
    196195  // speed-up feature
    197196  Vector cameraPosition = this->getAbsCoor();
    198197  Vector targetPosition = this->target->getAbsCoor();
    199198  Vector up = this->getAbsDirV();
    200   Vector delay = Vector(0,0,0);
    201   if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity())/25;
     199  Vector delay = Vector(0, 0, 0);
     200  if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f;
    202201
    203202  // Setting the Camera Eye, lookAt and up Vectors
     
    206205            up.x, up.y, up.z);
    207206
    208   // switching back to Modeling Matrix
    209207  glMatrixMode (GL_MODELVIEW);
    210   //  this->target->getParent()->getParent()->debugDraw(0, 2, Vector(1,0,0));
     208  glLoadIdentity();
    211209}
    212210
Note: See TracChangeset for help on using the changeset viewer.