Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 29, 2010, 2:21:57 PM (14 years ago)
Author:
gionc
Message:

updated skyboxgenerator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc

    r6771 r6804  
    8686            case 0 :
    8787                camera->getOgreCamera()->setFOVy(Degree(90));
     88                aspectRatio_ = camera->getOgreCamera()->getAspectRatio();
     89                fovy_ = camera->getOgreCamera()->getFOVy();
    8890                camera->getOgreCamera()->setAspectRatio(1);
    8991                iterateOverDirections_++;
     
    133135               
    134136            case 7 :
    135                 camera->getOgreCamera()->setAspectRatio(1.3333);
    136                 camera->getOgreCamera()->setFOVy(Degree(45));
     137                camera->getOgreCamera()->setAspectRatio(aspectRatio_);
     138                camera->getOgreCamera()->setFOVy(fovy_);
    137139                iterateOverDirections_ =0;
    138140                takeScreenshot_ = false;
Note: See TracChangeset for help on using the changeset viewer.