Hi
I am trying to update the SceneView Camera using Androids OrientationSensor in Xamarin to do an AR app with no success. I get the quaternions (x,y,z,w) from the sensor and use them to create the transformation matrix but the resulting orientation does not correspond to the mobile's orientation. I have tried different combination of axes (changing order and sign in the quaternion components) assuming it was a problem with the axes definition but still with no success.
Anybody knows how to use Android's OrientationSensor to create the correct transformation matrix?
Thanks
PD: I know I can use the magnetomer and accelerometer to obtain the AR effect but prefer to use the OrientationSensor as I think it will lead to a better solution.