Archived

This topic is now archived and is closed to further replies.

The Kid

rotations (theory)

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites