Changeset 4150 in orxonox.OLD for orxonox/branches
- Timestamp:
- May 10, 2005, 6:15:06 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4149 r4150 63 63 for(int whichVertex = 0; whichVertex < 3; whichVertex++) 64 64 { 65 printf("now drawing vertex %i of face nr: %i\n", whichVertex, j);66 65 int index = pObject->pFaces[j].vertIndex[whichVertex]; 67 66 int index2 = pObject->pFaces[j].coordIndex[whichVertex]; 68 printf("using index: %i, %i\n", index, index2);69 67 /* we invert the normals since the md2 file format uses different style */ 68 /* FIX FIX FIX: ther are actualy no reasons to compute the normals every frame: change this later*/ 70 69 glNormal3f(-pObject->pNormals[index].x, -pObject->pNormals[index].y, -pObject->pNormals[index].z); 71 70 … … 130 129 this->readMD2Data(); 131 130 this->convertDataStructures(pModel); 131 this->computeNormals(pModel); 132 132 133 133 if( likely((int)textureName))
Note: See TracChangeset
for help on using the changeset viewer.