As you rotate around the x-axis near 90 degrees, gimbal lock will occur and the background flicks to the other side of the screen. I believe this can be fixed by using a quaternion to store the axis and a translation to find the offset for the background image.
As you rotate around the x-axis near 90 degrees, gimbal lock will occur and the background flicks to the other side of the screen. I believe this can be fixed by using a quaternion to store the axis and a translation to find the offset for the background image.