Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4150 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
May 10, 2005, 6:15:06 PM (20 years ago)
Author:
patrick
Message:

orxonox/branche/md2_loader: the heureka - the md2model now gets rendered but its hard to see it, since the space ship is moving very fast :) working on this onw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc

    r4149 r4150  
    6363      for(int whichVertex = 0; whichVertex < 3; whichVertex++)
    6464        {
    65           printf("now drawing vertex %i of face nr: %i\n", whichVertex, j);
    6665          int index = pObject->pFaces[j].vertIndex[whichVertex];
    6766          int index2 = pObject->pFaces[j].coordIndex[whichVertex];
    68           printf("using index: %i, %i\n", index, index2);
    6967          /* 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*/
    7069          glNormal3f(-pObject->pNormals[index].x, -pObject->pNormals[index].y, -pObject->pNormals[index].z);
    7170
     
    130129  this->readMD2Data();
    131130  this->convertDataStructures(pModel);
     131  this->computeNormals(pModel);
    132132
    133133  if( likely((int)textureName))
Note: See TracChangeset for help on using the changeset viewer.