Changeset 2967 in orxonox.OLD
- Timestamp:
- Nov 24, 2004, 12:56:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/object.cc
r2937 r2967 48 48 \param scaling The factor that the object will be scaled with. 49 49 */ 50 51 50 Object::Object(char* fileName, float scaling) 52 51 { … … 90 89 groupCount = 0; 91 90 92 initGroup ( currentGroup);91 initGroup (firstGroup); 93 92 mtlFileName = ""; 94 93 scaleFactor = 1; 95 94 material = new Material(); 96 95 97 glEnableClientState (GL_VERTEX_ARRAY);96 // glEnableClientState (GL_VERTEX_ARRAY); 98 97 // glEnableClientState (GL_NORMAL_ARRAY); 99 98 // glEnableClientState (GL_TEXTURE_COORD_ARRAY); … … 226 225 group->name = ""; 227 226 group->faceMode = -1; 228 group->faceCount = 0;227 group->faceCount = 0; 229 228 if ((group->listNumber = glGenLists(1)) == 0 ) 230 229 { … … 237 236 group->firstVertex = 0; 238 237 group->firstNormal = 0; 239 group->first Normal= 0;238 group->firstVertexTexture = 0; 240 239 } 241 240 else … … 265 264 glEndList(); 266 265 } 266 267 267 /** 268 268 \brief deletes the Arrays of the Group to save space. … … 480 480 texture ++; 481 481 if (verbose>=3) 482 printf ("includeing texture #%i, and mapping it to group texture #%i, textureArray has %i entries.\n", atoi(texture), (atoi(texture)-1 - currentGroup->firstVertexTexture)* 3, currentGroup->vTexture->getCount());482 printf ("includeing texture #%i, and mapping it to group texture #%i, textureArray has %i entries.\n", atoi(texture), (atoi(texture)-1 - currentGroup->firstVertexTexture)*2, currentGroup->vTexture->getCount()); 483 483 glTexCoord2fv(currentGroup->vTexture->getArray()+(atoi(texture)-1 - currentGroup->firstVertexTexture)*2); 484 484 … … 638 638 \param matString the Material that will be set. 639 639 */ 640 641 640 bool Object::readUseMtl (char* matString) 642 641 { … … 670 669 readVertex ("-0.500000 -0.500000 -0.500000"); 671 670 readVertex ("0.500000 -0.500000 -0.500000"); 671 672 672 readVertexTexture ("0.000000 0.000000"); 673 673 readVertexTexture ("1.000000 0.000000");
Note: See TracChangeset
for help on using the changeset viewer.