• Advertisement

Archived

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

How to rotate an object around the cener of the screen

This topic is 6151 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i''m developing a 3d model viewer. the problem is if I pan the object left or right, the rotation axis also shifts left and right while i want the world to always rotate around the center of the screen Can anyone help me ???

Share this post


Link to post
Share on other sites
Advertisement
Oh, an other possibility is to use te glPushMatrix() and glPopMatrix() commands, before, and after you draw you models, so that your translations for the world are restored after your modelcode...

SnAkE''s Programming Resources

Share this post


Link to post
Share on other sites

  • Advertisement