Sign in to follow this  

Creating Clouds

This topic is 3956 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 ! Well Im trying to create clouds for my game engine, so I need a some feedback. The idea is to have a realistic sky, even if you wont see it much (since its a sport simulator) I would like to have clouds moving around the skydome and projecting shadows on the ground. Of course they need to be different from each other. So wich is the best approach ? I have the perlin noise function generator working on the engine. I was thinking of using it for the alpha transparency part) , but how do I create random cloud textures? Any feedback is welcome. Thanks!

Share this post


Link to post
Share on other sites
http://freespace.virgin.net/hugo.elias/models/m_clouds.htm

Cloud creation using perlin noise - if you have a perlin generator already, it shouldn't be too difficult to get in :)

Use the results as both the sky box texture, and the shadow map for you cloud cover.

There are other ways to generate cloud cover, as I'm sure others will point out, but this is using technology you already have. 3D perlin noise would also create dynamically changing cloud cover, rather than just scrolling clouds.

Spree

Share this post


Link to post
Share on other sites
You could look into Jos Stam's simulations of fluids with temperature.

Share this post


Link to post
Share on other sites
what? I just want some simple but realistic clouds generation. I tried the link above but the problem is that there is no code example so is really hard for me since Im new to this

Share this post


Link to post
Share on other sites
As far as I remember :

Use 2D perlin to generate a random number (say between 0 and 1) for every pixel of your cloud texture
Choose a threshold value depending on the overcast, discard all pixels under this value (1 = blue sky, 0 = bad weather). You could also use a greyscale above the threshold to have the center of your clouds darker, and play with alphas

If you add time as the third perlin variable, your clouds will be changing with time (but to have some wind effect, you'll need to translate the x/y coordinates with time as well).

I guess you can also use the texture to get shadows.

Share this post


Link to post
Share on other sites

This topic is 3956 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this