skybox help

Can you please tell me some rules of thumb that you use when placing the skybox in your games, i.e. when deciding to what value to set xmin, xmax, ymin, ymax, zmin, zmax?

Is setting cube vertex coordinates to (+/-f/sqrt(3), +/-f/sqrt(3), +/-f/sqrt(3)) + V_camera, where V_camera is the position of the camera, a good idea?

Hi

I’m using very simple,fast and looking good enough solution:

On drawing the skybox:
Switch to 2d mode and disable the z-buffer
Draw window size rectangle with color gradient effect from top to down.
Switch back to 3D,enable back z-buffer

No algorithm or math needed …

Here’s a post I made on it skybox.

Thanks, but I don’t think your approach is good. The gradient would maybe work for a racing game, but it’s pretty much a 2D thing. The cube needs to rotate with the view. The second maxz approach is bad, as it’s still possible to come near the skybox and this is a big no no. I’ll just try to implement my translational skybox.

I was too critical of you two. Thanks for your help. Next time I’ll just do my math and keep my mouth shut :slight_smile: