PDA

View Full Version : modelview matrix



incus
09-14-2002, 11:02 AM
how can i get the modelview matrix so that i can change the trtanslation part?

Bob
09-14-2002, 11:27 AM
GLdouble mv[16];
glGetDoublev(GL_MODELVIEW_MATRIX, mv);

Mazy
09-15-2002, 04:19 AM
if you just want to change the matrix, dont get it..

glMatrixMode(GL_MODELVIEW);
glTranslatef(x,y,z);

that will do fine