Archived

This topic is now archived and is closed to further replies.

nachilau

Creating Skybox in DirectX

Recommended Posts

Hello, Can anyone told me how to create a Skybox in DirectX. I have follow the billboarding example in the DirectX SDK and build load its skybox mesh . I follow the instruction to disable the zbuffer before render the skybox and turn on the zbuffer after. However, this method doesn''t really work. When my 3D world is bigger than the Skybox, I can actually see the skybox is in the middle of the world. Do you guys know where can I can get more information about creating the skybox or donwload some different skyboxs on the web? Thanks! Nachi

Share this post


Link to post
Share on other sites
you can draw the skybox before drawing other geometry, in which case the skybox can be of any size. the drawback is that you''ll be refilling many pixels on screen unnecessarily. if you want to render skybox last, you need to size it so that it''s bigger than your game world.

Share this post


Link to post
Share on other sites
I was having problems with that too - what i did was i created a massive box and textured the sides - then i set it every frame to the same position as the camera. I never knew anything about switching off Z buffering - is there anything slower about the way i'm doing it?


[edited by - Cuchulainn on November 2, 2002 12:18:35 PM]

Share this post


Link to post
Share on other sites