Jump to content
  • Advertisement
Sign in to follow this  
iLoveGameProgramming

OpenGL Clouds in OpenGL?

This topic is 2232 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

Hey guys smile.png
Well I'm trying to make volumetric clouds but I have no idea where to start.. Does anyone know a good tutorial how to make them or suggest a commercial free library that could achieve that more easily with out spending weeks to code it tongue.png Also I don't want anything too cpu intensive... Just something simple smile.png

They don't have to be really realistic or anything but I want to fly thought them, and change how dense they are etc.

I've made simple clouds in OpenGl and they look like this:

clouds1.png

I like how they look, i use perlin noise formula to generate them so they are different each time, and I can adjust how dense they are.. the only problem is that it's just a plane..

cloud%20plane.png



So I definitely need new approach to this tongue.png

Well what I am trying in future is weather system, So i could get rain, thunderstorms etc
Thanks so much for your time and help biggrin.png

Share this post


Link to post
Share on other sites
Advertisement
Use 3D simplex noise. Although, it is more performance costly. The cost can be reduced using interpolation. Edited by larspensjo

Share this post


Link to post
Share on other sites
You could have it like it is now (maybe some shaders to make it look 3D), and when you get closer use particles and fade the cloud texture away.

Share this post


Link to post
Share on other sites
Hi there. I've been looking into clouds recently, maybe some of the research I've done could guide you towards a solution.

Perhaps the simplest solution is going from 2D to 3D Perlin Noise.

I would suggest using billboard sprites as dpadam450 said. I'd recommend reading two papers, "A Simple, Efficient Method for Realistic Animation of Clouds" by Yoshinori Dobashi (PDF), as he describes a way to represent cloud volumes. The second paper is on the actual billboard sprites, "Real-Time Cloud Rendering" by Mark Harris (PDF).


If you want really nice clouds, try http://wiki.patapom.com/index.php/Clouds. It the most extensive documentation on clouds I've found to date, but it is very complex. Good luck.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!