PDA

View Full Version : rotate about static Y and Z axis



kampretz
02-12-2008, 11:47 AM
How to make a rotation about the static Y and Z axis?
If I make something like this:
glRotatef(alpha, 0, 1, 0)
glRotatef(beta, 0, 0, 1)
it will rotate about the Y-axis, and then rotate about the new Z-axis.
What should I do to be able to rotate about the static Y-axis, and then about the static Z-axis.

Thanks a lot.