problem mit opengl matrix aufbewahrung
-
hi
wieso ist
glMatrixMode(GL_PROJETCION); glLoadIdentity(); gluPerspective(45, 16.0f / 9.0f, 0.1f, 100); glMatrixMode(GL_MODELVIEW);
nicht gleich mit
glMatrixMode(GL_PROJETCION); glLoadIdentity(); gluPerspective(45, 16.0f / 9.0f, 0.1f, 100); float speicher[16]; glGetFloatv(GL_PROJECTION_MATRIX, speicher); glLoadIdentity(); glLoadMatrixf(speicher); glMatrixMode(GL_MODELVIEW);
?
ich tippe auf array-fehler. (müsste es glLoadMatrixf(&(speicher[0])); sein?)
-
Hm, vielleicht mal mit float speicher[4][4]; probieren?
-
Was genau heißt "nich gleich"? Eigenlich sollte in beiden Fällen das gleiche rauskommen...