• Advertisement
Sign in to follow this  

Premultiplying in OpenGL and Rotation

This topic is 4122 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

I'm currently learning OpenGL and i'm trying to rotate an object in a fixed coordinate system. I have been reading that I have to pre-multiply and that OpenGL post-multiplies. But I'm just having a little difficulty visualizing the concept. My code looks something like... glTranslatef( 0, 0, -6 ); glRotatef( rotateX, 1, 0, 0 ); glRotatef( rotateY, 0, 1, 0 ); DrawObject(); Can anyone help me out? Some psuedo-code would be appreciated. Thanks in advance. :)

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement