How to control an OpenGL projection matrix with iPhone accelerometer/compass values?

Posted by Geri on Stack Overflow See other posts from Stack Overflow or by Geri
Published on 2010-06-12T15:26:46Z Indexed on 2010/06/12 15:32 UTC
Read the original article Hit count: 310

Is there any ready made class/formula somewhere I can use it for control my viewpoint by accelerometer's/compass's XYZ?

I want to achieve the same view control like acrossair uses.

I have the parts (OpenGL space, filtered accel-, compass values, and a cubic panoramic view mapped to a cube around my origin).

Can somebody suggest me where to start at least?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about accelerometer