[LWJGL] Can't figure out why the camera is not working

Hi everyone, I know I must have done something weird in my code making me blindness. But I can’t actually figure out what is wrong. The input and move methods for the camera are ok since the coordinates change in the way I want them to.
So I think I messed up something about the rendering or the OpenGL init.

Here is the important code : http://pastebin.java-gaming.org/e9eed458b3a1f

If someone could take a look and give me some clues on what I am doing wrong, it could be great.
I’m not an advanced user of OpenGL even if I already played with 3D before, a long time ago.

It’s a little hard for me to tell as you’re using depricated openGL…

I believe the problem might be when you’re starting your renderloop, you call:

glLoadIdentity();

Which resets some matrix to an identity matrix; Perhaps it is resetting the projection matrix?

Hi, first, thanks for your reply.

[quote]you’re using depricated openGL…
[/quote]
You mean, without using projection, view and transformation matrices ? I’m a bit confused about them and shaders for now. But I should use them more indeed, it could help me to understand them more.
I’ll try it but I must read a bit more about matrices for that.

For the current code though, I figured out I written :

glEnable(GL_MODELVIEW);

instead of

glMatrixMode(GL_MODELVIEW);

While thinking I must be really blindness to not see that, I thought it was the problem but actually it’s not.
Even removing the

glLoadIdentity();

at the beginning of the loop didn’t fix anything.
I think I’ll jump straight to modern OpenGL.