I’d like to add falling rain and snow to my project, but I’d like it to look good.
The goals are:
1.Same setup for snow and rain and other things falling from the sky (eg. meatballs, cats and dogs, hail).
2. Snow/rain not glued to the camera
3. TPP camera (rotates around a point in front of the camera)
4. Camera can look up and down (at worst limited to +/-80 deg.)
5. Camera can move fast
Things that I think won’t work.
- Texture scrolling on the camera.
-when looking up the rain will fall sideways
-when moving the rain moves as well - Cone or cylinder around the camera
-would need to have a radius as big as the distance between the camera and the point aroud the camera rotates (the rain is too far if on the inside of the cylinder)
-moves with the camera - Particles
-camera can ‘outrun’ slow falling snow
-cpu intensive or needs geometry and/or compute shaders
-I don’t like the panda particles much, they always run slow on my pc
Before I start tinkering on offscreen, clip mapped, hardware instanced rain geometry with linear depth buffer composition (don’t arsk…) I’d like to know if anyone here had some successes with rendering rain and snow, or has any usefull links?
I know of a article in ShaderX5 about layerd rain rendering, but it looks like it’s about the ATI ‘Toy Shop’ demo, and that demo uses just a texture scrolling over the camera.
There’s also a paper on rain in MotoGP but it’s about not showing rain falling from the sky and still getting a wet look.
I was also told there was a article on snow in Game Programming Gems 5, but I don’t want to buy the book just to see if it’s any good.