how can i get the modelview matrix so that i can change the trtanslation part?
GLdouble mv[16];
glGetDoublev(GL_MODELVIEW_MATRIX, mv);
if you just want to change the matrix, dont get it…
glMatrixMode(GL_MODELVIEW);
glTranslatef(x,y,z);
that will do fine