rotations (theory)
Ok, I have a program where I want something to rotate around its Z axis. That works fine using glRotatef() when its in the center of the screen, but when its not, it rotates around the center of the screen. How can I get it to rotate around its center, and not the screen''s center ? Any help/suggestions would be much appriciated.
The Kid
I don''''t know what the future holds, but I know who holds the future.
Alright im kind of a newbie to opengl but i think i figured this out. All u need to do is before u rotate do a gltransferf to the center u wish the camera to rotate around
Hope this helps
|RiZeUp
Edited by - RiZeUp on October 16, 2001 12:18:42 AM
Hope this helps
|RiZeUp
Edited by - RiZeUp on October 16, 2001 12:18:42 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement