Open Miartsix opened 1 year ago
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
Working on fixing this with https://github.com/godotengine/godot/pull/73734
I tested in the latest, I think the AABB changes in Godot Engine 4.1 may have fixed.
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?
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.
If it's a caching reloading but there are some fixes in that direction. https://github.com/godotengine/godot/pull/82471
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.
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_1](https://user-images.githubusercontent.com/91782210/217948415-054005d8-ca7b-45fb-b532-5120ebe3a00e.png)
Steps to reproduce
Minimal reproduction project
Issue_project.zip