Jump to content

  • Log In with Google      Sign In   
  • Create Account

Clouds in OpenGL?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Konrad Jablonski   Members   -  Reputation: 483

Like
0Likes
Like

Posted 11 June 2012 - 04:46 AM

Hey guys Posted Image
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 Posted Image Also I don't want anything too cpu intensive... Just something simple Posted Image

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:

Posted Image

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..

Posted Image



So I definitely need new approach to this Posted Image

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 Posted Image

Sponsor:

#2 larspensjo   Members   -  Reputation: 1540

Like
1Likes
Like

Posted 11 June 2012 - 05:11 AM

Use 3D simplex noise. Although, it is more performance costly. The cost can be reduced using interpolation.

Edited by larspensjo, 11 June 2012 - 05:12 AM.

Current project: Ephenation.
Sharing OpenGL experiences: http://ephenationopengl.blogspot.com/

#3 dpadam450   Members   -  Reputation: 923

Like
1Likes
Like

Posted 11 June 2012 - 09:08 AM

Just use billboarded sprites like you would with any particle system.

#4 Waterlimon   Crossbones+   -  Reputation: 2562

Like
1Likes
Like

Posted 11 June 2012 - 09:27 AM

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.

o3o


#5 Yours3!f   Members   -  Reputation: 1338

Like
1Likes
Like

Posted 11 June 2012 - 02:34 PM

http://lmgtfy.com/?q...cloud rendering
>)

or
http://lmgtfy.com/?q=realtime+cloud+rendering

Edited by Yours3!f, 11 June 2012 - 02:36 PM.


#6 Fractal_Vision   Members   -  Reputation: 112

Like
2Likes
Like

Posted 11 June 2012 - 04:21 PM

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.

#7 Konrad Jablonski   Members   -  Reputation: 483

Like
0Likes
Like

Posted 12 June 2012 - 05:07 AM

Thanks so much for feed back! :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS