[gameprogrammer] Re: Sky in OpenGL
- From: Stephen <gp@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 16 Nov 2005 07:54:32 +0000
D'oh! Thanks, I didn't know you could do that.
Cheers,
Steve.
Stephane Marchesin wrote:
Stephen wrote:
I'm having trouble working out what to do about how I implement a sky
in my OpenGL game. I originally surrounded the game world with a
massive sphere, and drew the image onto the inside, and it worked
well (especially when I rotated it). However, I've now set the
maximum view distance to be something more sensible, so OpenGL
doesn't try to draw everything in the distance. However, this
obviously means that the sky sphere now doesn't get drawn. How do
other games get round this? I can't think of another way that would
still produce a realistic looking sky.
glDisable(GL_DEPTH_TEST);
render_sky();
glEnable(GL_DEPTH_TEST);
Stephane
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: Sky in OpenGL
- From: Alan Wolfe
- References:
- [gameprogrammer] Sky in OpenGL
- From: Stephen
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephane Marchesin
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
Stephen wrote:
I'm having trouble working out what to do about how I implement a sky in my OpenGL game. I originally surrounded the game world with a massive sphere, and drew the image onto the inside, and it worked well (especially when I rotated it). However, I've now set the maximum view distance to be something more sensible, so OpenGL doesn't try to draw everything in the distance. However, this obviously means that the sky sphere now doesn't get drawn. How do other games get round this? I can't think of another way that would still produce a realistic looking sky.
glDisable(GL_DEPTH_TEST); render_sky(); glEnable(GL_DEPTH_TEST);
Stephane
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- [gameprogrammer] Re: Sky in OpenGL
- From: Alan Wolfe
- [gameprogrammer] Sky in OpenGL
- From: Stephen
- [gameprogrammer] Re: Sky in OpenGL
- From: Stephane Marchesin