-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Bone2D nodes are rendered wrongly when parent node is scaled #76087
Comments
Scaling is tricky in computer graphics, and generally you should use it carefully with physics and bones (especially). Probably there is no good fix for this, since Blender have same problem with bones for a long time. Probably someone who understand this topic should write a portion documentation about it. |
Thanks for the reply! I am aware that scaling in bones & physics is often unreliable in game engines. I encountered this bug during the making of a quick prototype and would put more care into getting the sizes right and not needing scaling in an actual project, of course. However, I still felt like reporting this because this is purely about the in-editor display of (indirectly) scaled bones. This is, to my eyes at least, a different kind of bug than the usual 'weird' behavior with scaled bones or physics. I did a quick test in Blender, and can indeed confirm it has roughly the same bug with 'Octahedral' and 'B-Bone' viewport display modes. However, other modes ('Envelope', for example) seem to not have this problem. Lastly, it seems Godot differs from Blender here in that it renders the bones in a way that I would consider correct, until the user saves the project. I'll leave it to someone with more knowledge of editor internals to triage whether this is worth fixing, or if we should just add a warning (perhaps even in-editor?) about scaling bones/skeletons/physics. Thank you for your time. |
Thanks, as a new user getting into animation in Godot I believe that my bone issues are coming from scaling bones. I would not have known otherwise so a message would've been helpful. I will now redo my entire structure without scaling and hopefully will have better results, but as you noted everything looks fine until you save or reload the project. Bone structure also differs in the Polygon editor as well. |
Godot version
v4.0.2.stable.official [7a0977c]
System information
Linux amd64, nvidia GTX 1080 TI driver Version: 525.105.17
Issue description
Greetings, I am facing what I think is an issue with the in-editor display of
Bone2D
. When I have the following scene tree for say a character:Then, when I scale the top Node2D down, the in-editor rendered bones scale correctly.
However, as soon as I hit ctrl+s to save, the bones are rendered big and chunky instead.
Steps to reproduce
Minimal reproduction project
bone2d_render_bug.zip
The text was updated successfully, but these errors were encountered: