[gameprogrammer] Re: Sky in OpenGL
- From: Josh Stewart <aek@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 16 Nov 2005 18:08:18 +0800
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
- References:
- [gameprogrammer] Sky in OpenGL
- From: Stephen
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephane Marchesin
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephen
Other related posts:
- » [gameprogrammer] Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
- » [gameprogrammer] Re: Sky in OpenGL
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:
- [gameprogrammer] Sky in OpenGL
- From: Stephen
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephane Marchesin
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephen