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

3D model deforms when playing animations in Godot 4 #72998

Open
Tracked by #57416
Miartsix opened this issue Feb 9, 2023 · 7 comments
Open
Tracked by #57416

3D model deforms when playing animations in Godot 4 #72998

Miartsix opened this issue Feb 9, 2023 · 7 comments

Comments

@Miartsix
Copy link

Miartsix commented Feb 9, 2023

Godot version

4.0.rc1

System information

Windows 10, Vulkan, NVIDIA GeForce GTX 1060 6GB driver version: 27.21.14.5751

Issue description

When opening a glb. file exported from Blender, the animation works correctly on multiple versions of Godot 3, but deforms in Godot 4.
I tried changing some exporting settings in Blender and import settings in Godot, but nothing helped.
issue_2
issue_1

Steps to reproduce

  1. Open the model as a new inherited scene
  2. Play the animation

Minimal reproduction project

Issue_project.zip

@clayjohn
Copy link
Member

clayjohn commented Feb 9, 2023

This is an issue with our current Auto-LOD generator. The auto LODs are being used much too early and they quality is not good for animated meshes.

You can work around it by disabling LOD generation in the import menu or increasing the LOD bias on the MeshInstance3D

Part of #57416

@fire
Copy link
Member

fire commented Feb 22, 2023

Working on fixing this with #73734

@fire
Copy link
Member

fire commented Jun 18, 2023

I tested in the latest, I think the AABB changes in Godot Engine 4.1 may have fixed.

@clayjohn
Copy link
Member

I tested in the latest, I think the AABB changes in Godot Engine 4.1 may have fixed.

Is it fixed, or does it just not appear until the camera is further away than before?

@ydeltastar
Copy link
Contributor

ydeltastar commented Oct 12, 2023

Just tested in 4.1.2 and it's not fixed. I run into this issue a lot while working with animated characters. The bone structure looks fine in the editor but some parts of the mesh are deformed.

It only happens when the model is an Editable Children. If I uncheck Editable Children, it keeps deformed in the editor but works in runtime. If I restart the editor, it is fixed in the editor too. I can reproduce the same behavior in the minimal reproduction project here.
Looking at the git diff of the scene, it saves bones rotations when it's an editable children causing the issue and when you disable it it removes these rotations from the scene file fixing the issue. I guess it is ignoring AnimationPlayer's reset_on_save feature or it is not implemented for Skeleton3D since imported 3D animations don't have a RESET animation, that would be Skeleton3D's rest pose instead.

@fire
Copy link
Member

fire commented Oct 12, 2023

If it's a caching reloading but there are some fixes in that direction. #82471

@ydeltastar
Copy link
Contributor

I tested with a build of #82471 but it doesn't have any effect on the issue.

Disabling LODs generation fixed it in 4.1.2 so the saved bone rotations might be irrelevant. It should still reset on save thought since it creates unnecessary diffs but that sounds like a case for a different issue.

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

No branches or pull requests

5 participants