Hi!
I made the first person camera from this (http://www.lloydgoodall.com/lwjgl-fpcamera.shtml) tutorial, but the texture on the objects were placed inverted. To obtain the texture I used the stick-util library. Also, when I try to move the camera up (position.y += distance), the camera moves down, but the objects are positioned correctly (the object at 0,2,0 is higher than the object at 0,1,0).
What I did wrong? ??? (Source code included)
Somebody answer me??
Not sure, but my initial opinions are:
Camera: Consider glTranslate. After it's been used, every operation is shifted by that much. That means to move a perceived viewpoint, you want to translate in the opposite direction you are wanting to move (i.e., use negative values). Afterwards, things that are offset by that amount are that much "closer" to the viewpoint.
Textures: I think you have to pass Slick-Util a parameter in the texture loader to stop texture inverting, but I'm not sure. Take a look at the docs.
http://slick.cokeandcode.com/javadoc-util/org/newdawn/slick/opengl/TextureLoader.html (http://slick.cokeandcode.com/javadoc-util/org/newdawn/slick/opengl/TextureLoader.html) Just pass false or true for "flipped" variable to see which one makes it not inverted.
Problem solved. Thanks.