Jump to content

glTF's animation does not work properly with the latest version of Babylon.js


Recommended Posts

I tried to display the glTF model with the latest version of Babylon.js (v3.1 rc-1).

However, it seems that some models do not display properly.

BoxTextured ... Texture is not displayed
BoxAnimated ... Animation only works partially
RiggedSimple, RiggedFigure, CesiumMan, Monster, BrainStem, VirtualCity ... Animation does not work




Link to comment
Share on other sites

The animation is because the default behavior of the loader for playing animations has changed. The default behavior before played all the animations. The new default behavior plays just the first animation.

See https://github.com/KhronosGroup/glTF/issues/1052 and https://github.com/KhronosGroup/glTF-Sample-Models/issues/108 for more information about this. The sample models will be updated (hopefully soon) such that playing the first animation will behave correctly.

In the meantime, if you want the old behavior to play all the animations, you can now specify a new property animationStartMode on the loader to play all the animations at once.

The black texture thing is a different issue that only happens for webgl1. I'll look into that separately.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...