Skip to main content
gamedev.net
🔒 Locked

Skydome

Started by VoodooCHld 0 replies 300+ views
Original Post
VoodooCHld
VoodooCHld
anyone got any good examples of how to do a skydome in direct3d, well actually, api independent. thanks much Code makes the world go round...
Code makes the world go round...
kersh
kersh
Hello:

I would use a sky box rather than a dome. Depending on how many polygons in the dome, you are rendering so many more polygons than you really need to.

But whatever your fancy...

I skybox is a textured box (or dome) rendered closely around the camera. The rendering order is really important.

You must turn of ZWriting using some kind of set render state, and render the box closly around the camera. Next turn on zwriting and render the rest of the world. This will give a convincing infinte world in all directions.

Remember that anytime you rotate the camera, keep the box''s rotation matrix at the identity so that the box will not move withthe camera.

Hope this helps,
--Jeff

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.