Changeset 8659 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 21, 2006, 3:25:47 AM (18 years ago)
- 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 197 197 //some adjustements: 198 198 if( anim->fps == 0) 199 anim->fps = 1;199 anim->fps = 33; 200 200 201 201 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 167 167 // { 168 168 //interpolate mesh frame between the 2 current mesh frames 169 if( data->header->boneFrameNum > 1) 169 170 this->interpolateMeshFrame( data, 170 171 mesh->meshFrames[data->animationState.currentFrame], 171 172 mesh->meshFrames[data->animationState.nextFrame], 172 173 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); 173 179 // } 174 180 // else … … 670 676 else { 671 677 this->time += time * data->animation->fps; 672 PRINTF(0)("anim state: +=%f, =%f\n", time * data->animation->fps, this->time);673 678 if(this->time > 1.0f) 674 679 {
Note: See TracChangeset
for help on using the changeset viewer.