It seems that when the angle rotx is not 0, when I try to rotate the sphere around y axis, it’s rotating around x axis too(although it’s not)…I want to rotate the sphere only left and right…do I have to use gluLookAt instead of glRotatef?
Have you tried using the Z axia in place or X or Y?
Originally posted by Puma1140: It seems that when the angle rotx is not 0, when I try to rotate the sphere around y axis, it’s rotating around x axis too(although it’s not)…I want to rotate the sphere only left and right…do I have to use gluLookAt instead of glRotatef?