Skip to content
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

quaternion rotations are ignored on iOS/XCode #52

Closed
kcoley opened this issue Sep 13, 2018 · 3 comments
Closed

quaternion rotations are ignored on iOS/XCode #52

kcoley opened this issue Sep 13, 2018 · 3 comments

Comments

@kcoley
Copy link
Owner

kcoley commented Sep 13, 2018

Since iOS and XCode currently do not support quaternion xform rotations, add an option to convert quaternion rotations to baked linear Euler rotations:

#50

@kcoley
Copy link
Owner Author

kcoley commented Sep 26, 2018

I added a new flag called "--use-euler-rotation". Using this should get the rotations to work by converting the rotation quaternions to euler angles. Note that this won't be smooth for all animations.

@wave-electron
Copy link

@kcoley I was trying this out today, and basically if you rotate more than 180 degrees in one direction it jumps a little. Is that because of gimbal lock when using euler rotations? i'm assuming quaternion rotations don't suffer the issue.

@kcoley
Copy link
Owner Author

kcoley commented Oct 7, 2018

@wave-electron yes, I think it is gimbal lock related. I am currently using the USD apis to directly convert the quaternions to euler angles. I'm hoping an iOS update would support quaternions, but in the meantime, I may try to come up with a better algorithm to prevent the jumps.

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

2 participants