¡@

Home 

2014/10/16 ¤W¤È 08:23:02

android Programming Glossary: rotationmatrix

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

method 1 to 4 are working they are directly sending the rotationMatrix to the OpenGl view. method 6 works now too but I have no explanation.. to calculate the angles 7 to 12 every possibility how the rotationMatrix could be constructed in SensorManager.getRotationMatrix see.. private SensorManager mSensorManager private float rotationMatrix new float 16 private float accelGData new float 3 private float..

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

to the opengl view or any other target which would need it. method 1 to 4 are working they are directly sending the rotationMatrix to the OpenGl view. method 6 works now too but I have no explanation why the rotation has to be done y x z.. all other methods.. rotate the camera with glrotate 6 uses the rotation matrix to calculate the angles 7 to 12 every possibility how the rotationMatrix could be constructed in SensorManager.getRotationMatrix see http www.songho.ca opengl gl_anglestoaxes.html#anglestoaxes.. private ByteBuffer indexBuffer private FloatBuffer colorBuffer private SensorManager mSensorManager private float rotationMatrix new float 16 private float accelGData new float 3 private float bufferedAccelGData new float 3 private float magnetData..