[Orxonox-commit 2090] r6806 - code/branches/skybox2/src/modules/designtools

gionc at orxonox.net gionc at orxonox.net
Thu Apr 29 15:27:24 CEST 2010


Author: gionc
Date: 2010-04-29 15:27:24 +0200 (Thu, 29 Apr 2010)
New Revision: 6806

Modified:
   code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc
Log:
updated skybox generator

Modified: code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc
===================================================================
--- code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc	2010-04-29 13:26:43 UTC (rev 6805)
+++ code/branches/skybox2/src/modules/designtools/SkyboxGenerator.cc	2010-04-29 13:27:24 UTC (rev 6806)
@@ -84,36 +84,32 @@
             switch (iterateOverDirections_) 
             {
             case 0 :
+                fovy_ = camera->getOgreCamera()->getFOVy();
                 camera->getOgreCamera()->setFOVy(Degree(90));
                 aspectRatio_ = camera->getOgreCamera()->getAspectRatio();
-                fovy_ = camera->getOgreCamera()->getFOVy();
                 camera->getOgreCamera()->setAspectRatio(1);
                 iterateOverDirections_++;
                 break;
             case 1 :
                 w->writeContentsToFile(skyboxPrefix_+"fr.png");
-                //w->writeContentsToFile(skyboxPrefix_+"0.png");
                 ce->yaw(Degree(90));
                 iterateOverDirections_++;
                 break;
                 
             case 2 :
                 w->writeContentsToFile(skyboxPrefix_+"lf.png");
-                //w->writeContentsToFile(skyboxPrefix_+"1.png");
                 ce->yaw(Degree(90)); 
                 iterateOverDirections_++;
                 break;
 
             case 3 :
                 w->writeContentsToFile(skyboxPrefix_+"bk.png");
-                //w->writeContentsToFile(skyboxPrefix_+"2.png");
                 ce->yaw(Degree(90)); 
                 iterateOverDirections_++;
                 break;
 
             case 4 :
                 w->writeContentsToFile(skyboxPrefix_+"rt.png");
-                //w->writeContentsToFile(skyboxPrefix_+"3.png");
                 ce->yaw(Degree(90)); 
                 ce->pitch(Degree(90)); 
                 iterateOverDirections_++;
@@ -121,14 +117,12 @@
 
             case 5 :
                 w->writeContentsToFile(skyboxPrefix_+"up.png");
-                //w->writeContentsToFile(skyboxPrefix_+"4.png");
                 ce->pitch(Degree(180)); 
                 iterateOverDirections_++;
                 break;
 
             case 6 :
                 w->writeContentsToFile(skyboxPrefix_+"dn.png");
-                //w->writeContentsToFile(skyboxPrefix_+"5.png");
                 ce->pitch(Degree(90));
                 iterateOverDirections_++;
                 break;




More information about the Orxonox-commit mailing list