Sign in to follow this  

Premultiplying in OpenGL and Rotation

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this