Thursday, November 4, 2010

Space Skybox

I implemented the space skybox this morning. I had to create a model in Maya and throw a quick placeholder texture on it because the skybox Brandon created was a little too small. The method for drawing the skybox disregards the size of the box, but it was too small to fit around the ship, so weird clipping things were happening.

The drawing method is pretty cool. I got the idea from Reimer's tutorials. You attach the box to the camera and disable the depth buffer before you draw it. That way, the skybox doesn't cover up anything outside of it. You have to enable the buffer again afterward though.

No comments:

Post a Comment