Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 21, 2006, 3:25:47 AM (18 years ago)
Author:
patrick
Message:

bsp: md3 interkeyframe animation works now

Location:
branches/bsp_model/src/lib/graphics/importer/md3
Files:
2 edited

Legend:

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

    r8657 r8659  
    197197    //some adjustements:
    198198    if( anim->fps == 0)
    199       anim->fps = 1;
     199      anim->fps = 33;
    200200
    201201    PRINTF(0)("Animation: first frame: %i, num frames: %i, num loops: %i, fps: %i\n", anim->first, anim->numFrames, anim->numLoopFrames, anim->fps);
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8658 r8659  
    167167//       {
    168168        //interpolate mesh frame between the 2 current mesh frames
     169      if( data->header->boneFrameNum > 1)
    169170        this->interpolateMeshFrame( data,
    170171                                    mesh->meshFrames[data->animationState.currentFrame],
    171172                                    mesh->meshFrames[data->animationState.nextFrame],
    172173                                    data->animationState.interpolationFraction, mesh, i);
     174      else
     175        this->interpolateMeshFrame( data,
     176                                    mesh->meshFrames[data->animationState.currentFrame],
     177                                    mesh->meshFrames[data->animationState.currentFrame],
     178                                    0.0f, mesh, i);
    173179//       }
    174180//       else
     
    670676        else {
    671677          this->time += time * data->animation->fps;
    672           PRINTF(0)("anim state: +=%f, =%f\n", time * data->animation->fps, this->time);
    673678          if(this->time > 1.0f)
    674679          {
Note: See TracChangeset for help on using the changeset viewer.