PDA

View Full Version : Skybox Question



I_NeedHelp
01-28-2003, 08:13 AM
If i drew a skybox which would completly surround my world, would it look like dog poop or would it come out all nice like i applied the texture to a small box?? The box that would surround my world would have to be massive, so i was wondering if i applied the textures to it, would they look right? I've tried it, and it looks like poop. SO i was wondering if it is my code or are textures that are applied to large quads generally poop?? Forgive my over-use of the word poop, i could've used a stronger word http://www.opengl.org/discussion_boards/ubb/tongue.gif

[This message has been edited by I_NeedHelp (edited 01-28-2003).]

timmie
01-28-2003, 02:17 PM
You don't have to have it surround your whole world. It can be a tiny little box if you want. Just draw it first with depth writing turned off, then draw your scene with depth writing turned on.

glDepthMask(GL_TRUE/GL_FALSE);

How it looks is pretty much dependent on how good the skybox texture is and its resolution.

JustHanging
01-28-2003, 11:18 PM
Yes. If your skybox looks like s**t, it's either because it's not centered to the camera or your textures aren't made correctly.

-Ilkka