Changeset 6912 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Jan 31, 2006, 8:24:49 PM (19 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.