Animations don’t end on last keyframe of clip.

Using the current FBX loader from -dev

My skeletal animations, loaded from a binary FBX, exported from Maya using the game exporter, are ending on the t-pose with a brief pause before looping.

I have investigated the issue and it appears that all the last position, rotation, scale, values in the animation clip’s tracks are all the same (I believe the t-pose, but can’t visualise it) regardless of the bone positions/rotations in the last frame of the animation when viewed in Maya.

reducing the duration of the clips by about 40%% seems to cut out the move to the t-pose, but I have had to get the animator to add a 40%% sacrificial buffer to the end of each clip. If I don’t add this buffer the animation is cropped, it is as if the last frame of the clip is being replaced with the t-pose.

I can’t share that model, but I have an example of a cube orbiting a point, which pauses at the t-pose (not really a t-pose) frame each loop.

I’ve seen the example (with the character running with its arms in the air) which works as expected, so assume there is a combination of export settings that is unsupported/should be avoided.

thanks

animtest.zip

Author: Fantashit

1 thought on “Animations don’t end on last keyframe of clip.

  1. Thanks Looeee,

    That’s given us enough of a steer to get the animations exporting properly.

    When exporting anims from Maya to fbx for three.js:

    Frame 0 has to be the bind pose. This must be keyed and maya must be on that frame when you export. It does not need to be included in a clip.
    Do not let the exporter bake animation.
    All anim must be created at 30fps
    Clips do not need padding or extra frames, if they do not look correct an export setting is wrong.
    Below are the settings from Maya 2017 U4

    maya-fbx-settings-2
    maya-fbx-settings-1

    Hopefully this helps anyone else that stumbles across this.

Comments are closed.