Changeset 6804 for code/branches
- Timestamp:
- Apr 29, 2010, 2:21:57 PM (15 years ago)
- Location:
- code/branches/skybox2/src/modules/designtools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc
r6771 r6804 86 86 case 0 : 87 87 camera->getOgreCamera()->setFOVy(Degree(90)); 88 aspectRatio_ = camera->getOgreCamera()->getAspectRatio(); 89 fovy_ = camera->getOgreCamera()->getFOVy(); 88 90 camera->getOgreCamera()->setAspectRatio(1); 89 91 iterateOverDirections_++; … … 133 135 134 136 case 7 : 135 camera->getOgreCamera()->setAspectRatio( 1.3333);136 camera->getOgreCamera()->setFOVy( Degree(45));137 camera->getOgreCamera()->setAspectRatio(aspectRatio_); 138 camera->getOgreCamera()->setFOVy(fovy_); 137 139 iterateOverDirections_ =0; 138 140 takeScreenshot_ = false; -
code/branches/skybox2/src/modules/designtools/SkyboxGenerator.h
r6771 r6804 31 31 #include "util/Singleton.h" 32 32 #include "tools/interfaces/Tickable.h" 33 #include <OgreMath.h> 33 34 34 35 … … 51 52 bool takeScreenshot_; 52 53 int iterateOverDirections_; 54 float aspectRatio_; 55 Ogre::Radian fovy_; 53 56 }; 54 57 }
Note: See TracChangeset
for help on using the changeset viewer.