Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6804 for code


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

updated skyboxgenerator

Location:
code/branches/skybox2/src/modules/designtools
Files:
2 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;
  • code/branches/skybox2/src/modules/designtools/SkyboxGenerator.h

    r6771 r6804  
    3131#include "util/Singleton.h"
    3232#include "tools/interfaces/Tickable.h"
     33#include <OgreMath.h>
    3334 
    3435 
     
    5152            bool takeScreenshot_;
    5253            int iterateOverDirections_;
     54            float aspectRatio_;
     55            Ogre::Radian fovy_;
    5356    };
    5457}
Note: See TracChangeset for help on using the changeset viewer.