Changeset 10432 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 28, 2007, 2:25:09 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/planet.cc
r10424 r10432 29 29 #include "vertex_array_model.h" 30 30 #include "primitive_model.h" 31 #include "effects/billboard.h" 31 32 32 33 #include "debug.h" … … 78 79 .describe("Sets the materialPlanet on the Planet. The string must be the path relative to the data-dir, and without a trailing .jpg"); 79 80 81 LoadParam(root, "size", this, Planet, setSize) 82 .describe("Sets the Size of the Planet (normally this should be 90% of the maximal viewing Distance)."); 83 80 84 LoadParam(root, "cloud-texture", this, Planet, setCloudTexture) 81 85 .describe("Sets the cloud texture of the planet"); … … 83 87 LoadParam(root, "cloud-rotation", this, Planet, setCloudRotation) 84 88 .describe("Sets the cloud rotation speed"); 85 86 LoadParam(root, "size", this, Planet, setSize)87 .describe("Sets the Size of the Planet (normally this should be 90% of the maximal viewing Distance).");88 89 } 89 90 … … 105 106 void Planet::setCloudTexture(const std::string& textureName) 106 107 { 107 this->materialCloud.setDiffuseMap(textureName); 108 // this->materialCloud.setDiffuseMap(textureName); 109 // this->halo = new Billboard(); 110 // this->halo->setTexture( textureName); 111 // this->halo->setSize(this->size + 5, this->size + 5); 112 // this->halo->setParent( this); 108 113 this->bClouds = true; 109 114 } … … 142 147 WorldEntity::draw(); 143 148 144 if( this->bClouds)145 {146 glDisable(GL_LIGHTING);147 this->materialCloud.select();148 WorldEntity::draw(this->cloudModel);149 glEnable(GL_LIGHTING);150 }149 // if( this->bClouds) 150 // { 151 // glDisable(GL_LIGHTING); 152 // this->materialCloud.select(); 153 // WorldEntity::draw(this->cloudModel); 154 // glEnable(GL_LIGHTING); 155 // } 151 156 } 152 157 -
trunk/src/world_entities/planet.h
r10392 r10432 12 12 /* FORWARD DECLARATION */ 13 13 class Texture; 14 class Billboard; 14 15 15 16 //! A Class to handle a Planet … … 43 44 44 45 Model* cloudModel; //!< the model for the cloud 46 Billboard* halo; //!< halo around the planet 45 47 46 48 bool bClouds; //!< true if there are clouds defined
Note: See TracChangeset
for help on using the changeset viewer.