Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8574 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer


Ignore:
Timestamp:
Jun 18, 2006, 10:53:21 PM (18 years ago)
Author:
patrick
Message:

bsp: md3 - found bug source: no correct vertex interpolation made until now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8568 r8574  
    308308  void MD3Model::drawMesh(MD3Mesh* mesh, sVec3D* frame) const
    309309  {
     310    PRINTF(0)("\n\nMD3Model::drawMesh()\n");
    310311    glColor3f(1.0f, 1.0f, 1.0f);
    311312    glBegin( GL_TRIANGLES );
     
    331332      glNormal3f(normal.x, normal.y, normal.z);
    332333      //no normalization necessary, GL_NORMALIZE is enabled!
     334
     335      PRINTF(0)("drawing vertex: %f, %f, %f, normal: %f, %f\n",
     336      frame[mesh->triangles[t].vertexOffset[0]][0],
     337      frame[mesh->triangles[t].vertexOffset[0]][1],
     338      frame[mesh->triangles[t].vertexOffset[0]][2],
     339               normal.x, normal.y, normal.z);
     340      PRINTF(0)("drawing vertex: %f, %f, %f, normal: %f, %f\n",
     341      frame[mesh->triangles[t].vertexOffset[1]][0],
     342      frame[mesh->triangles[t].vertexOffset[1]][1],
     343      frame[mesh->triangles[t].vertexOffset[1]][2],
     344      normal.x, normal.y, normal.z);
     345      PRINTF(0)("drawing vertex: %f, %f, %f, normal: %f, %f\n",
     346      frame[mesh->triangles[t].vertexOffset[2]][0],
     347      frame[mesh->triangles[t].vertexOffset[2]][1],
     348      frame[mesh->triangles[t].vertexOffset[2]][2],
     349      normal.x, normal.y, normal.z);
     350
    333351
    334352      glTexCoord2fv( mesh->texVecs[mesh->triangles[t].vertexOffset[0]].textureCoord);
Note: See TracChangeset for help on using the changeset viewer.