Voila, j'essaye de convertir des coordonnées depuis l'espace objet vers l'espace caméra (world to eye coordinates).

Pour ce faire, j'essaye d'utiliser glGetDoublev(GL_MODELVIEW_MATRIX, modelView);

Mais voila, j'ai un big bug, j'ai fait un programme simple pour vous montrer le bug:
Le programme suivant devrait me donner un truc genre:
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

Mais il me donne n'importe quoi !
int main(int argc, char* argv[])
{
int i;
double modelView[16];

printf("Bug modelview!\n\n");

glMatrixMode(GL_MODELVIEW);
glLoadIdentity();

glGetDoublev(GL_MODELVIEW_MATRIX, modelView);
for(i = 0; i < 16; i++) {
printf("%f\n", modelView[i]);
}
getc(stdin);
return 0;
}
Ha l'aiide ! Merci à tous ceux qui m'aideront.