Changeset 6266 in orxonox.OLD for branches/height_map/src
- Timestamp:
- Dec 22, 2005, 7:24:57 PM (19 years ago)
- Location:
- branches/height_map/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/vertex_array_model.cc
r6265 r6266 66 66 void VertexArrayModel::draw() const 67 67 { 68 PRINTF(4)("drawing the 3D-VertexArrayModels\n"); 69 glDisable(GL_LIGHTING); 70 68 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->getName()); 71 69 glEnableClientState(GL_VERTEX_ARRAY ); 72 70 glEnableClientState(GL_TEXTURE_COORD_ARRAY ); … … 87 85 &this->indices[this->stripes[i-1]] ); 88 86 } 89 glEnable(GL_LIGHTING);90 87 } 91 88 … … 245 242 float cosPhi = std::cos(phi); 246 243 this->addVertex(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 247 this->addNormal( 1,1,1);248 this->addTexCoor(0,0); 249 this->addColor(.125,.436,.246); 244 this->addNormal(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 245 this->addTexCoor(0,0); /// FIXME 246 this->addColor(.125,.436,.246); ///FIXME 250 247 } 251 248 for (unsigned int loopNumber = 0; loopNumber <= loops; ++loopNumber) … … 264 261 float cosPhi = std::cos(phi); 265 262 this->addVertex(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 266 this->addNormal( 1,1,1);267 this->addTexCoor(0,0); 263 this->addNormal(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 264 this->addTexCoor(0,0); //FIXME 268 265 this->addColor(.125,.436,.246); 269 266 -
branches/height_map/src/story_entities/world.cc
r6263 r6266 393 393 394 394 VertexArrayModel* mod = new VertexArrayModel; 395 mod-> planeModel();395 mod->spiralSphere( 10,0,0); 396 396 mod->finalize(); 397 397 mod->debug();
Note: See TracChangeset
for help on using the changeset viewer.