Archived

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

Skyboxes with animated clouds

This topic is 5400 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I was wondering if anyone had any ideas on how to combine using a skybox for rendering far-off terrain (at the horizon) with animated clouds rendered on a sky-plane. The problem I see is that my skyboxes will have mountainous terrain and the clouds should move behind them. I figured i could just include an alpha channel in the skybox and make the sky portion transparent.. However, the skybox textures are so big to begin with that I was wondering if there was a way around it. Another way i thought was just to not have the clouds move behind the mountains in the skybox, but make a haze or fog behind the mountains that will be the same color as the clouds. Then I could render my cloud plane after the skybox with the z-buffer turned off.. the cloud plane would have to be positioned such that from the perspective of the player it blends into the haze. The other way would just be to render the far off geometry at very low detail and use the skybox just for the sky. Any suggestions, ideas, etc? Thanks, BH

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quake3 does it the following way:
it has a farbox , cloudlayer(s) and a nearbox.
First the farbox gets renderd. Then the cloudlayer(s) is blended on top of the farplane, using the same box-shaped geometry. The texturcoordiantes of the cloudlayer are made in a way they _look_ like a skysphere / hemisphere. After that the nearbox is rendered over the cloudlayers, using alphablending.
The nearbox is not used in any q3 shader, though. If you want to see it in action or need some code, have a look at my q3 viewer: http://www.tu-ilmenau.de/~amigo

greets, skynet

Share this post


Link to post
Share on other sites