rotations (theory)

Started by
2 comments, last by The Kid 22 years, 6 months ago
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.
I don''t know what the future holds, but I know who holds the future.
Advertisement
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
|RiZeUp
thanx I''ll try that
I don''t know what the future holds, but I know who holds the future.
make sure you move the object before you rotate it. I think.

This topic is closed to new replies.

Advertisement