Quote Originally Posted by tksuoran View Post
I am just guessing here, but I would suspect the transformation that you use for the sky object is not quite right.

Try rendering the sky with some simple transformations. First try with identity transform. This should give a "working" but fixed, non-rotating sky. The next step would be to try some rotation only transform.
Transformation? this is the code that starts the draw method
Code :
glPushMatrix();               
                glPushAttrib(GL_ENABLE_BIT);
 
                glLoadIdentity();   
                GL13.glActiveTexture(GL13.GL_TEXTURE0);
                glEnable(GL_TEXTURE_2D);
//                glDepthRange(0, 1);
 
              //load textures
                textures = new Vector<Texture>();
                try 
                {                   	
                    textures.add(ImageLoader.loadTexture("Sky/front", "PNG"));
                    textures.add(ImageLoader.loadTexture("Sky/left", "PNG"));
                    textures.add(ImageLoader.loadTexture("Sky/back", "PNG"));
                    textures.add(ImageLoader.loadTexture("Sky/right", "PNG"));
                    textures.add(ImageLoader.loadTexture("Sky/top", "PNG"));
                    textures.add(ImageLoader.loadTexture("Sky/bottom", "PNG"));
                }
                catch (Exception e)
                {
                	System.out.println(e.getStackTrace().toString());
                	System.out.println(e.getMessage());
                	System.out.println(e.getCause());
                	System.out.println(e.getLocalizedMessage());
                }                
 
                glRotatef(-cam.roll() + 180,  0, 0, -1);
                glRotatef(-cam.pitch(), 1, 0, 0);
                glRotatef(-cam.yaw(),   0, 1, 0);
//                glScalef(15,15, 15);
 
                // Just in case set all vertices to white.
            glColor4f(1,1,1,1);

then farther down it has 6 glbegin(GL_QUADS) and such. Also Identity Transform? how do I do that? I'm using LWJGL (which is openGL) for Java. (Also have Slick and Slick utils too)