Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8577 in orxonox.OLD for branches/bsp_model/src/lib


Ignore:
Timestamp:
Jun 18, 2006, 11:23:16 PM (18 years ago)
Author:
patrick
Message:

bsp: md3 found the bug and eliminated it! he's dead, McCoy

File:
1 edited

Legend:

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

    r8576 r8577  
    120120        frame = &mesh->meshFrames[data->animationState.currentFrame];
    121121      }
    122       this->tmpMesh = &frame;
     122      this->tmpMesh[i] = frame;
    123123
    124124      // draw vertex normals if needed
     
    322322    for( int t = 0; t < mesh->header->triangleNum; t++) {
    323323      // calc normal vector
     324      PRINTF(0)("offset %i, %i\n", mesh->triangles[t].vertexOffset[1], mesh->triangles[t].vertexOffset[0]);
     325      PRINTF(0)("vertex: %f\n", frame[ mesh->triangles[t].vertexOffset[1] ][0]);
     326
    324327      tmpVec1.x = frame[mesh->triangles[t].vertexOffset[1]][0] - frame[mesh->triangles[t].vertexOffset[0]][0];
    325328      tmpVec2.x = frame[mesh->triangles[t].vertexOffset[2]][0] - frame[mesh->triangles[t].vertexOffset[0]][0];
Note: See TracChangeset for help on using the changeset viewer.