Rotating camera 360º?

May 29, 2010 at 8:18 AM

This project is absolutely amazing. I'm inspired to make my own little application using this library.

I have one question though, is it possible to allow the camera rotate more than 180 degrees? I notice that CameraX/CameraY and CameraLookAtX/CameraLookAtY will diminish up until 180 degrees. If I want to create a full 360º, will that be possible?

Coordinator
May 30, 2010 at 11:18 AM

Hi Andrew,

Thanks for the nice words. I'm always interested in new applications. Is your app live somewhere?

0 - 360° should be possible . It depends on how you compute the rotation. Keep in mind that you can also try  -180° - 180° instead.

If you combine multiple rotation axes you could have run into the Gimbal lock. This is a nice explanation of the Gimbal lock in 3D. One well known solution in computer graphics is to avoid Euler rotation matrices and to use Quaternions instead. A Quaternion can be transformed into a rotations matrix.