Skip to content

Matrix to Quaternion function requires quaternion standardization at the end. #1703

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

Closed
GostInShell opened this issue Dec 15, 2023 · 0 comments

Comments

@GostInShell
Copy link

The current implementation handles the near zeros value really well by computing with the largest denominator. However, this will leave the w to be not always positive. Though it will not affect general operation like multiplication, it can result in unexpected behaviors in quaternion blendings.

Moreover, this only happens when the trace is near zero making it more mysterious and unpredictable. I am currently implenting a dual quaternion blending function with it, and it really takes me several good days to find out the reason.

So I suggest add a line of standardize at the end.

facebook-github-bot pushed a commit that referenced this issue Dec 21, 2023
Summary:
An OSS user has pointed out in #1703 that the output of matrix_to_quaternion (in that file) can be non standardized.

This diff solves the issue by adding a line of standardize at the end of the function

Reviewed By: bottler

Differential Revision: D52368721

fbshipit-source-id: c8d0426307fcdb7fd165e032572382d5ae360cde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant