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

Slerped head tracking for RajawaliVRRenderer.java to remove sensor jitter. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dcerisano
Copy link

Headtracking directly from the sensor quaternion is too sensitive (jitter - but still not as bad as Unity!).
This update uses spherical interpolation to significantly improve the subjective experience of headtracking. Pretty sure Oculus does this.

It agressively slerps from previous to current tracking position. Tried various slerp values, but this one corrects the jitter without inducing lag. Could be used as default value.

TODO: drift correction.

Headtracking directly from the the sensor quaternion is too sensitive.
This update uses spherical interpolation to significantly improve the behavior of headtracking.
It simply slerps from previous to current tracking position.
TODO: drift correction.
@dcerisano dcerisano changed the title Update RajawaliVRRenderer.java Slerped head tracking for RajawaliVRRenderer.java Dec 18, 2014
@dcerisano dcerisano changed the title Slerped head tracking for RajawaliVRRenderer.java Slerped head tracking for RajawaliVRRenderer.java to remove sensor jitter. Dec 18, 2014
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

Successfully merging this pull request may close these issues.

None yet

1 participant