Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10251 in orxonox.OLD


Ignore:
Timestamp:
Jan 17, 2007, 1:29:25 PM (17 years ago)
Author:
muellmic
Message:

fixed the Field-Of-View handling inside camera.cc. before it has been bugged and didn-t set the fovy properly, especially it couldn't decrease the fovy. note, that for all perspectives, the camera-fovy AND/OR distance will have to be set again, since the calculations acutally work now. also, in this revision, i tried to set the aspect ratio to 1.33, which is standard according to marc. better would be to handle the aspect ratio when setting the resolution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/camera.cc

    r10237 r10251  
    3838
    3939  this->setFovy(90);
    40   this->setAspectRatio(1.2f);
     40  this->setAspectRatio(1.33f);
    4141  this->setClipRegion(.1, 10000);
    4242
     
    134134    case Camera::ViewTop:
    135135    {
    136       this->toFovy= 120;
    137       this->setRelCoor(Vector(-0.05, 40, 0));
     136      this->toFovy= 30;
     137      this->setRelCoor(Vector(-0.05, 200 , 0));
    138138      this->target->setRelCoor(0,0,0);
    139139    }
     
    156156
    157157  float tmpFovy = (this->toFovy - this->fovy);
    158   if (tmpFovy > 0.01)
     158  if (fabsf(tmpFovy) > 0.01)
    159159    this->fovy += tmpFovy * fabsf(dt);
    160160}
Note: See TracChangeset for help on using the changeset viewer.