Jump to content
  • Advertisement
Sign in to follow this  
NickyP101

When rendering Rain?

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

When rendering rain wat do you use? GL_POINTS? GL_TRIANGLES? What should i use when rendering rain drops? Cheers, Nick

Share this post


Link to post
Share on other sites
Advertisement
It depends how fancy you want to be I guess... GL_POINTS would work, though it'd be pretty ghetto ;)

For good looking rain, maybe try a particle system? In other words, have a texture that contains the image of a raindrop or maybe a group of raindrops, and then draw these rain textures falling from the sky.

roos

Share this post


Link to post
Share on other sites
careful when using particle systems. Depending on the art used for each particle, you may need to used axis-constrained billboards. This is to ensure that when looking to the sky (up) or to the ground (down), the drops still look like falling drops. It will be downright hilarious if u overlook that tiny detail :P

Share this post


Link to post
Share on other sites
hmmmh
maybe do lines
where each drop is a strip of lines with decreasing alpha vales on each vertex?
so the drop seems to stretch and fade out over distance/time


i wanna try that now....

Share this post


Link to post
Share on other sites
You could just prerender ten frames of rain on a transparent backdrop and draw each frame sequentially over the scene with a big quad. Depends on how realistically you want to model your scene.

Share this post


Link to post
Share on other sites
I use blended GL_LINES, with the alpha value being low in the "start" point and high in the end. It looks pretty ok.

Share this post


Link to post
Share on other sites
I read a paper somewhere (don't have the link, sorry) where the author maintained the human brain cannot distinguish individual drops. He simulated rain by darkening the scene and distorting it using a post-process. It looked very convincing.

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!