Changeset 7127 for code/branches/presentation3/src/modules/designtools
- Timestamp:
- Jun 9, 2010, 9:32:58 PM (15 years ago)
- Location:
- code/branches/presentation3/src/modules/designtools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/designtools/CreateStars.h
r7028 r7127 32 32 #include "util/Math.h" 33 33 #include "core/BaseObject.h" 34 34 35 35 namespace orxonox 36 36 { … … 61 61 } 62 62 63 void setColour(const orxonox::ColourValue& colour) { 63 void setColour(const orxonox::ColourValue& colour) { 64 64 this->colour_ = colour; 65 65 } 66 66 67 const ColourValue& getColour() const { 67 const ColourValue& getColour() const { 68 68 return this->colour_; 69 69 } … … 109 109 return this->radius_; 110 110 } 111 111 112 112 Vector3 PolarToCartesian(float alpha, float beta, float radius); 113 113 … … 119 119 unsigned int radius_; 120 120 float alpha_; 121 float colourDiff_; 121 float colourDiff_; 122 122 float alphaDiff_; 123 123 float radiusDiff_; 124 124 125 125 }; 126 126 } -
code/branches/presentation3/src/modules/designtools/SkyboxGenerator.cc
r7039 r7127 46 46 47 47 48 48 49 49 namespace orxonox 50 50 { … … 68 68 } 69 69 70 void SkyboxGenerator::setConfigValues( ) 70 void SkyboxGenerator::setConfigValues( ) 71 71 { 72 72 SetConfigValue(skyboxPrefix_, "SkyboxFile_"); … … 83 83 return; 84 84 } 85 85 86 86 ControllableEntity* ce = HumanController::getLocalControllerSingleton()->getControllableEntity(); 87 87 Camera* camera = ce->getCamera(); 88 88 assert(ce); 89 89 90 90 Ogre::RenderWindow* w = GraphicsManager::getInstance().getRenderWindow(); 91 91 92 92 93 switch (iterateOverDirections_) 93 switch (iterateOverDirections_) 94 94 { 95 95 case 0 : … … 105 105 iterateOverDirections_++; 106 106 break; 107 107 108 108 case 2 : 109 109 w->writeContentsToFile(skyboxPrefix_+"lf.png"); 110 ce->yaw(Degree(90)); 110 ce->yaw(Degree(90)); 111 111 iterateOverDirections_++; 112 112 break; … … 114 114 case 3 : 115 115 w->writeContentsToFile(skyboxPrefix_+"bk.png"); 116 ce->yaw(Degree(90)); 116 ce->yaw(Degree(90)); 117 117 iterateOverDirections_++; 118 118 break; … … 120 120 case 4 : 121 121 w->writeContentsToFile(skyboxPrefix_+"rt.png"); 122 ce->yaw(Degree(90)); 123 ce->pitch(Degree(90)); 122 ce->yaw(Degree(90)); 123 ce->pitch(Degree(90)); 124 124 iterateOverDirections_++; 125 125 break; … … 127 127 case 5 : 128 128 w->writeContentsToFile(skyboxPrefix_+"up.png"); 129 ce->pitch(Degree(180)); 129 ce->pitch(Degree(180)); 130 130 iterateOverDirections_++; 131 131 break; … … 136 136 iterateOverDirections_++; 137 137 break; 138 138 139 139 case 7 : 140 140 camera->getOgreCamera()->setAspectRatio(aspectRatio_); … … 152 152 } 153 153 154 void SkyboxGenerator::createSkybox( ) 154 void SkyboxGenerator::createSkybox( ) 155 155 { 156 156 SkyboxGenerator::getInstance().takeScreenshot_ = true; -
code/branches/presentation3/src/modules/designtools/SkyboxGenerator.h
r6994 r7127 32 32 #include "tools/interfaces/Tickable.h" 33 33 #include <OgreMath.h> 34 35 34 35 36 36 namespace orxonox 37 37 { … … 39 39 { 40 40 friend class Singleton<SkyboxGenerator>; 41 41 42 42 public: 43 43 SkyboxGenerator(); … … 49 49 private: 50 50 static SkyboxGenerator* singletonPtr_s; 51 std::string skyboxPrefix_; 51 std::string skyboxPrefix_; 52 52 bool takeScreenshot_; 53 53 int iterateOverDirections_;
Note: See TracChangeset
for help on using the changeset viewer.