Additive Animation not working with poses in BabylonJS 5

Hi all,
some functionality in my app that relies on Additive Animation stopped working in Babylon 5. As a first step, I went to the Playground example for Additive Animation from the documentation and found that the two poses Sad Pose and Sneak Pose are no longer working in Babylon 5 but look correct in Babylon 4.2.

I’m guessing that whatever broke this Playground is also the root cause of my issue, because my app is doing the same thing, ie taking a pose and applying it as an additive animation on top of existing animation. Any chance someone could look into what’s going on? It would be much appreciated.

@RaananW or @Evgeni_Popov if you guys have some free cycles

1 Like

Hello, just checking in on this again. Hoping to upgrade to Babylon 5 ASAP and this is a blocker for us. Thanks!

@bghgary might it be related to the skeletal loading changes in 5 ?

This is caused by a change that we made to the glTF loader for the animation curve editor. Basically, the frames now default to 60 fps instead of 1 fps. cc @carolhmj

You have two options:

  1. Revert back to the old behavior by setting the glTF loader targetFps back to 1:

    BABYLON.SceneLoader.OnPluginActivatedObservable.addOnce(function (loader) {
        loader.targetFps = 1;
  2. Multiply the animation hard coded values by 60:

     sadPoseAnim.start(true, 1, 0.03333333507180214 * 60, 0.03333333507180214 * 60);
     sneakPoseAnim.start(true, 1, 0.03333333507180214 * 60, 0.03333333507180214 * 60);

you are the best !!!

Thanks @bghgary I’m going to try this on my scene in the next couple days and report back!

1 Like

yep, this fix worked for me too. Thanks a ton @bghgary !

1 Like