-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
IK is not deforming properly with some positions of target node #47803
Comments
For the reference @wojtekpil tested latest |
Looking at the project, it seems that it only occurs when the bone is past the half-way point and then the rotation is off by Looking at the 3D model itself, I think the issue is probably the bone's forward direction being -Z. This is the first time I've come across said bone forward direction in all my IK testing. I imported the Here's the GLTF file: StandardRun_GLTF_File.zip Additionally, I tested the Also: I'm not sure why I was CC'ed here, as AndreaCatania wrote the code, I've only done a few tweaks to it. He would probably be better able to fix issues with the SkeletonIK node. |
Well I'm not an expert on this code, I mentioned the contributor who was most recently involved with changes to IK which could cause a regression. I'm also happy to CC @AndreaCatania if that's not related to your changes. |
No worries, I'm not upset or anything. I was just wondering why I was CC'ed on it. As I mentioned in my previous post, I do not think the issue is related to changes I made. It seems it was starting to occur after RC4, where the only change I had made was #40774. The only known bug from that change was the bone not being attached to animated skeletons. In #40774 I didn't change anything related to rotation, which seems to be the issue seen here. I think the issue is related to the bone forward direction being -Z because using a GLTF file (with bone forward being Y+) seems to fix the issue. Why a -Z forward bone direction causes the issue is something I am unsure on though. |
I am not sure if it this information can help, but all the models I tested were rigged with https://www.mixamo.com/ I think that this one was directly imported from website, and my second model from reddit post was generated using Godot Game Tools for Blender. |
I tested the latest version of #48251 and it does seem to fix this issue fully, to the best of my (limited) understanding. @wojtekpil Could you also try it out to confirm that it solves your issue? See #48251 (comment) to download a build artifact from that PR. |
Hi @akien-mga, just tested the fix and everything seems to be working correctly! I had a bit of difficulty building this pull request from the sources but after cleaning it looks like everything is ok. |
Godot version:
Godot 3.x
7a9c14e
OS/device including version:
Linux, Elementary OS Hera / GTX1660Ti
Issue description:
Mesh between bones is twisted if target node is behind object. It seems to work properly in 3.2.4 rc4. All builds after this rc have some problems with mesh deformation.
Steps to reproduce:
Place IK target node behind model
Minimal reproduction project:
ik_experiments.zip
The text was updated successfully, but these errors were encountered: