- Timestamp:
- Jan 31, 2006, 8:24:49 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/primitive_model.cc
r5437 r6912 73 73 if (detail <= 0) 74 74 detail = 1; 75 size /= 2 ;75 size /= 2.0; 76 76 // detail = 2; // make it even 77 77 float df = (float)detail; … … 80 80 for (float i = 0; i < df *2.0; i+=1.0) 81 81 { 82 float vi = i/df * PI;83 for (float j = -df / 2.0 +1.0; j < df / 2.0; j+=1.0 *df/(df+1.0))82 float vi = i/df * PI; 83 for (float j = -df / 2.0 +1.0; j <= df / 2.0; j+=1.0 *df/(df+1.0)) 84 84 { 85 85 float vj = j/df *PI; … … 92 92 size * sin(vi) * cos(vj)); 93 93 94 this->addVertexTexture(i / (df *2.0), (j-1.0)/(df)+.5); 94 this->addVertexTexture( i / (df *2.0), 95 (j-1.0)/(df)+.5); 95 96 } 96 97 } -
trunk/src/world_entities/planet.cc
r6780 r6912 112 112 void Planet::draw() const 113 113 { 114 115 116 114 glMatrixMode(GL_MODELVIEW); 117 115 glPushMatrix(); … … 123 121 this->getAbsCoor ().y, 124 122 this->getAbsCoor ().z); 125 123 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 124 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 126 125 127 126 this->material->select();
Note: See TracChangeset
for help on using the changeset viewer.