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
BoneLookController: Fix bone scaling being lost #14987
BoneLookController: Fix bone scaling being lost #14987
Conversation
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14987/merge/index.html#WGZLGJ#4600 Links to test babylon tools with this snapshot: https://playground.babylonjs.com/?snapshot=refs/pull/14987/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/14987/merge#BCU1XR#0 |
Visualization tests for WebGPU (Experimental) |
WebGL2 visualization test reporter: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not surprised to see scaling lost somewhere because of matrix decompose/recompose.
I am merging this. @Popov72 , @CedricGuillemet - do we want to open an issue to track the question in the description? Or is this the accepted solution? |
Let's see if @bghgary has some recommendation. For me, it's an acceptable fix. |
Might be the culprit? - https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Bones/bone.ts#L438 I'll wait for @bghgary to merge this. |
Visualization tests for WebGPU (Experimental) |
The |
See https://forum.babylonjs.com/t/why-is-bone-scale-resetting-during-bonelookcontroller-update/49667
This PR fixes the problem, HOWEVER I don't understand where in the calculation in
BoneLookController
or inBone
the bone scaling is lost.... It would be better to understand, to be sure it's the right fix...