Skip to main content
gamedev.net
🔒 Locked

matrics order problem?

Started by LeLe 0 replies 450+ views
Original Post
LeLe
LeLe
I''m confused by the matrics order of multiplication. suppose below code glMatrixMode(GL_MODELVOEW); glLoadIdentity(); glMultMatrixf(T); glMultMatrixf(R); draw_object(); whether the object is Translation first or Rotation first? it seems that the object is Rotation first than translate ? because glMultMatrix(M) is in this way C'' = C * M; while v'' = C * v; should I make my own way to set the current matrix if I want in the normal order of matrix; that is Translation first then Rotation C'' = R * T * C then glLoadidentity() and glMultMatrixf(C''); Any good advice??
zedzeek
zedzeek
download the opengl spec from www.opengl.org it explains this + more

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.