[gameprogrammer] Re: Sky in OpenGL

This may help explain it.
http://www.jeffkershner.com/tut_skybox.html

-Josh

Stephen wrote:

Sorry, I spoke too soon - it doesn't work for me, but probably cos I'm doing something wrong.

I'm setting up the openGL with this:
   glu.gluPerspective(45f, height_ratio, 0.1, 30f);

Then I loop through all the objects, which all draw okay, and then the sky:-
gl.glDisable(GL.GL_DEPTH_TEST);
glu.gluSphere(Canvas3D.quadratic, DIAMETER, 24, 24);
gl.glEnable(GL.GL_DEPTH_TEST);


If I increase the 30f in the perspective command, it draws the sky. But at the moment it doesn't, even with the disabling of the depth test. BTW, I'm using Java and JOGL. Any help much appreciated!

Thanks in advance,

Steve.


Stephane Marchesin wrote:




---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: