Skip to content

Bug: broken fbx animation #5449

Closed
Closed

Description

@tigert1998

Describe the bug
The FBX animation support is broken in the latest master branch. However, animation still works in v5.3.1. So the latest several commits must have made animation broken.

To Reproduce
My model loader code is available at https://github.com/tigert1998/tiger-game-engine/blob/main/engine/src/model.cc.
You could build the instancing-demo CMake target to test.
The two models with broken animation (fbx version) are (these two both work in v5.3.1):

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • OS: Windows
  • Version: latest master

Additional context
Add any other context about the problem here.

Activity

  1. added
    Bug
    on Feb 1, 2024
  2. changed the title [-]Bug:[/-] [+]Bug: broken fbx animation[/+] on Feb 1, 2024
  3. tellypresence commented on Feb 6, 2024

    @tellypresence
    Collaborator

    Confirm broken animation.

    Model tarisland-dragon-high-poly
    AnimationScreenshot
    Qishilong_skill06tarisland-dragon-high-poly_Qishilong_skill06_anim
  4. JulianKnodt commented on Mar 26, 2024

    @JulianKnodt
    Contributor

    Can you double check if this is still broken? I broke the FBX animation with a change, and it was recently fixed.

  5. tellypresence commented on Mar 27, 2024

    @tellypresence
    Collaborator

    Confirm that latest commit does not fix fbx animation; also confirm that animation was OK at release 5.3.1

    Model tarisland-dragon-high-poly
    AnimationAssimp
    feb861f (21 Mar 2024)release 5.3.1
    Qishilong_skill06tarisland-dragon-high-poly_Qishilong_skill06_anim_assimp_commit_feb861ftarisland-dragon-high-poly_Qishilong_skill06_anim_assimp_release_5 3 1
  6. tellypresence commented on Mar 27, 2024

    @tellypresence
    Collaborator

    Updated Aug 2024: please refer to issue 5719 for detailed bisect reports which show that there was breakage at 27 Oct 2019 and 24 Mar 2020

    Here are examples of fbx files where animation was working around release 5.0.1 but stopped working before release 5.3.1:

    Models of interest are

    ModelAssimp versionNotes
    2d2889f (24 Sep 2019)release 5.3.1 (25 Sep 2023)feb861f (21 Mar 2024)
    22-rp_manuel_animated_001_dancing_fbx22-rp_manuel_animated_001_dancing_fbx22-rp_manuel_animated_001_dancing_fbx_assimp_release_5_3_122-rp_manuel_animated_001_dancing_fbx_assimp_commit_feb861fWorked at commit 2d2889f and release 5.3.1, obviously wrong now
    35-rp_sophia_animated_003_idling_fbx22-rp_manuel_animated_001_dancing_fbx35-rp_sophia_animated_003_idling_fbx_assimp_release_5_3_135-rp_sophia_animated_003_idling_fbx_assimp_commit_feb861fWorked at commit 2d2889f, didn't work in release 5.3.1, obviously worse now
    55-rp_nathan_animated_003_walking_fbx22-rp_manuel_animated_001_dancing_fbx55-rp_nathan_animated_003_walking_fbx_release_5_3_155-rp_nathan_animated_003_walking_fbx_assimp_commit_feb861fWorked at commit 2d2889f, didn't work in release 5.3.1, no obvious difference now

    Here's what they should look like...
    render_people_free_3d_animated_people

  7. kimkulling commented on Mar 28, 2024

    @kimkulling
    Member

    Oh my gosh, that looks bad. I got it!

  8. shinyclaw commented on Apr 2, 2024

    @shinyclaw

    Confirmed at version from today's master branch. Animation "Hip Hop Dancing" on model "CH42_NOPBR" from Mixamo.

    Hip.Hop.Dancing.mp4
  9. mwestphal commented on Apr 14, 2024

    @mwestphal
    Contributor

    I've bisected the issue to #5349

  10. mwestphal commented on Apr 14, 2024

    @mwestphal
    Contributor

    Please note this is NOT the same issue as #3390

  11. kikonen commented on May 5, 2024

    @kikonen

    Just tried to update from 5.3.1 to 5.4.0, and well, as a result got kind of abstract art, which looks similar to samples here.

  12. added a commit that references this issue on Jun 11, 2024
  13. tellypresence commented on Aug 17, 2024

    @tellypresence
    Collaborator

    @kikonen Are you able to share your test FBX model file(s) for troubleshooting purposes?

  14. tellypresence commented on Aug 17, 2024

    @tellypresence
    Collaborator

    @shinyclaw Have you got a link to the Mixamo CH42_NOPBR model?

  15. kikonen commented on Aug 18, 2024

    @kikonen

    @tellypresence I presume I can share files for testing, just can't share them publicly to everyone.

    https://drive.google.com/drive/folders/1ZOLRK1X-lN3Jq6hxdJ6XPr-oFEk2xcng?usp=sharing

    SK_Lion.FBX

    • Got broken with 5.4.0 (worked with 5.3.1)

    "Lion with 5.3.1"
    image

    Lion with 5.4.0
    image

    SK_SkeletonKnight.FBX

    • Animation has not worked so far properly with assimp at all; aka. this may have separate issues, not related to 5.4.0, but just adding it here as secondary reference point

    Skeleton animation, with assimp 5.3 - 5.4
    image

  16. 4 remaining items

  17. JulianKnodt commented on Aug 19, 2024

    @JulianKnodt
    Contributor

    I think there can be issues with multiple meshes in a single node (specifically I found some when exporting meshes with nodes with multiple meshes), but it would be useful to know the hierarchy of your scene

  18. tellypresence commented on Aug 19, 2024

    @tellypresence
    Collaborator

    @kikonen
    Thank you for the link. It looks like both the Lion and Skeleton Knight have 2 FBX files each, the main mesh plus a separate animation-only FBX file. Do you have any way to export a single FBX file containing both the mesh and animation data?

  19. kikonen commented on Aug 19, 2024

    @kikonen

    If possible should separate that skeleton into another issue.

    Regarding fbx files, not sure how easily I could get them into same file. I.e. original files were separate files (mesh + anim), so to merge them would propably have try importing them into Blender and merge them there (and Blender seems to have its own issues with fbx import).

  20. tellypresence commented on Aug 20, 2024

    @tellypresence
    Collaborator

    @kikonen Please try: #5643. I'm fairly sure I've fixed this regression, but it would be good to have more people verify it (and encourage that it gets merged).

    @kikonen Please sync your PR branch (it's out of date)

  21. kikonen commented on Aug 21, 2024

    @kikonen

    @tellypresence Did some trial with #5643 fix with current assimp master, and it was working for me same way as nonrebased version in PR. Noticed additionally that base transforms for few static mesh fbx files I had exported from unreal seemed to work now better, i.e. previously I had to apply -90 degree rotation along X axis to them after importing (i.e. generic improvement from some fix along the way).

    You probably meant that sync req to @lxw404 :)

  22. tellypresence commented on Sep 12, 2024

    @tellypresence
    Collaborator

    Confirm that commit f81ea69 fixed fbx animation for limited set of models...

    ModelAssimp versionNotes
    ab12e8d (11 Sep 2024)
    Before PR #5751
    f81ea69 (11 Sep 2024)
    After PR #5751
    tarisland-dragon-high-polytarisland-dragon_ab12e8dtarisland-dragon_f81ea69
    silver-dragonkin-mir4silver-dragonkin-mir4_ab12e8dsilver-dragonkin-mir4_f81ea69

    ...but had no apparent effect on other broken FBX animations...

    ModelAssimp versionNotes
    ab12e8d (11 Sep 2024)
    Before PR #5751
    f81ea69 (11 Sep 2024)
    After PR #5751
    robot_kyle_walkingrobot_kyle_walking_ab12e8drobot_kyle_walking_f81ea69
    mr-man-walkingmr-man-walking_ab12e8dmr-man-walking_f81ea69
    55-rp_nathan_animated_003_walking_fbx55-rp_nathan_animated_003_walking_fbx_ab12e8d55-rp_nathan_animated_003_walking_fbx_f81ea69
    manuel dancingmanuel_dancing_ab12e8dmanuel_dancing_f81ea69
    sophia idlingsophia_idling_ab12e8dsophia_idling_f81ea69
  23. mwestphal commented on Sep 12, 2024

    @mwestphal
    Contributor

    As I stated above:

    Please note this is NOT the same issue as #3390

    Which is a much older issue afaiu.

  24. kikonen commented on Nov 16, 2024

    @kikonen

    Latest release seems to be still 5.4.3 from Aug 30. Any changes of getting 5.4.4 containing this fix?

    Specificly I would need version tagged in vcpkg in order to be usable in my project

    EDIT
    My rather ugly workaround to get "latest'n'greatest" from assimp master into my vcpkg package manager based project; created custom vcpkg repo containing assimp compiled from master branch :D Yeah, rewriting project to use some other mechanism for managing library dep, is not in the goals of that project (yet, I may someday get inspiration, but right not that is not) :D

    https://github.com/kikonen/vcpkg-registry

  25. pepcots commented on Mar 10, 2025

    @pepcots

    Latest release seems to be still 5.4.3 from Aug 30. Any changes of getting 5.4.4 containing this fix?

    Specificly I would need version tagged in vcpkg in order to be usable in my project

    EDIT My rather ugly workaround to get "latest'n'greatest" from assimp master into my vcpkg package manager based project; created custom vcpkg repo containing assimp compiled from master branch :D Yeah, rewriting project to use some other mechanism for managing library dep, is not in the goals of that project (yet, I may someday get inspiration, but right not that is not) :D

    https://github.com/kikonen/vcpkg-registry

    Thanks! I overlayed my local vcpkg with your repo (installed as submodule) and it works fine now! Hope there is a new release soon with the fix. Many thanks @kikonen !

  26. added
    FBX
    Animation
    Regression
    on Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnimationBugFBXRegression

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions