Rajawali / RajawaliVR

Rajawali + Virtual Reality
Other
136 stars 61 forks source link

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

Open dcerisano opened 9 years ago

dcerisano commented 9 years ago

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.