glGetFloatv(GL_MODELVIEW_MATRIX, m) dont work!
glGetFloatv(GL_MODELVIEW_MATRIX, m) doesn''t seem to work with my setup, it always returns the same value (a saw someone else having the same problem on a newsgroup post).
I know it can''t be right, because if i call LoadMatrix straight after, on the result that I get from the above statement, i get a completly inconsistant result.
I have a Radeon 9500 PRO, although not the latest drivers (and i cant update on this comp)
Help would be much appreciated!
if i just do
glGetFloatv(GL_MODELVIEW_MATRIX, m1);
glTranslatef(3.0, 4.0, 5.0);
glGetFloatv(GL_MODELVIEW_MATRIX, m2);
then m1 and m2 would still be the same
even when i glFlush and glFinish before and after the calls
[edited by - FearedPixel on November 9, 2003 5:47:13 PM]
glGetFloatv(GL_MODELVIEW_MATRIX, m1);
glTranslatef(3.0, 4.0, 5.0);
glGetFloatv(GL_MODELVIEW_MATRIX, m2);
then m1 and m2 would still be the same
even when i glFlush and glFinish before and after the calls
[edited by - FearedPixel on November 9, 2003 5:47:13 PM]
Are you sure the matrix mode is set to model-view when those calls are made?
"Sneftel is correct, if rather vulgar." --Flarelocke
"Sneftel is correct, if rather vulgar." --Flarelocke
Maybe it''s wglMakeCurrent(), or other initialization ?
Maybe it''s because your matrix stack is full? (forgot to pop?)
Do you get any visible result/change when rendering?
Maybe it''s because your matrix stack is full? (forgot to pop?)
Do you get any visible result/change when rendering?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement