Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation from GLB file not playing properly #75969

Closed
Tracked by #63198
evelynparenteau opened this issue Apr 12, 2023 · 3 comments · Fixed by #75990
Closed
Tracked by #63198

Animation from GLB file not playing properly #75969

evelynparenteau opened this issue Apr 12, 2023 · 3 comments · Fixed by #75990

Comments

@evelynparenteau
Copy link

Godot version

v4.0.1.stable.official [cacf499]

System information

macOS M1 ARM

Issue description

A GLB file with a single animation (which was created in Houdini) imports without warnings in Godot. The mesh and material loads properly and the presence of the animation is detected, but trying to play the animation results in no movement.

Steps to reproduce

  1. Open attached Godot project
  2. Open repro.tscn in the editor.
  3. Select the AnimationPlayer node and open the Animation tab along the bottom.
  4. Play the animation.

Expected result:
The cube explodes into a number of pieces. To see the expected behavior, try an online gltf viewer like this one or this one. Note in particular that this GLB file passes the Khronos GLTF validator
Note: the GLB file does not load at all in Blender, an issue I am still investigating.

Actual result:
Godot seems to think that the animation is 1 frame long (it is actually 24 frames long). As no actual movement occurs in the first frame of the animation in the file, nothing happens.

Minimal reproduction project

glb_animation_test.zip

@evelynparenteau
Copy link
Author

As noted, the same file has trouble in Blender as well (but not in the same way - it doesn't load at all in Blender). While I suspect that this is unrelated, I have also filed a ticket for Blender.

@capnm
Copy link
Contributor

capnm commented Apr 12, 2023

Julien is right :)

See glTF Next: KhronosGroup/glTF#1036

Compare bad / ok (fixed by me):

repro2.zip

grafik
grafik

@capnm
Copy link
Contributor

capnm commented Apr 12, 2023

Bug in Blender fixed – will work in future Blender versions...
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants