Aligning a camera with iPhone4 Gyroscope
Hi all,
I have a little iPad App I've developed called Terrain, it was just an experiment with some OpenGL Shaders on iOS, lots of fun to me at least.
I'm thinking of running it on an iPhone-4 and utilizing the new Gyroscope. The idea would be to 'stick' the camera to the iPhone 4's gyroscope so that you can just rotate the device and thus rotate the world accordingly, sort of Augmented-Reality style, only that its not augmenting its replacing :-)
Any ideas how to fetch the axis and creating a camera matrix out of it?
Thanks
|