Hello everyone !
I write it today because I have a problem with the orientation of a jPCT camera. I use the sensor of the device to do augmented reality. I use this tutorial to get the differents values [
http://www.thousand-thoughts.com/2012/03/android-sensor-fusion-tutorial/] (Because the easy way is too noisy). I get a rotation matrix and 3 angles (Pitch, roll and Azimuth).
So I want to use the 3 angles with a simple rotateCameraAxis. But I can't because the 3 values ar not independant and when I rotate on 1 axis, others moves and I can't rotate for the 2 others. (I you have a solution, say it, I'm happy to read it !)
The second way to rotate the camera is to use the rotation matrix. I convert it to a 4x4 matrix and fill with 0 and one 1, I base it on cols. But it don't work. And more, my view is totally deformed. My modles are very stranges... Anyone have a solution about it ?
How can I use the 3 angles or the matrix to rotate my camera ?
Thanks !
