Jump to content

Rain - The wet look


Flexman
 Share

Recommended Posts

What's the general approach to achieving the "wet look" with a deferred renderer? Making rain particles is straight forward, I'm interested in objects/terrain.

 

Here's a Unity Plugin video that is sort of the look I'm after...

 

This would be nice too, although I shudder at having to supply yet another texture map for materials to achieve this. This is an image from another rendering system that has a nice puddle/wet effect.

 

6175.asphalt.jpg

 

I'm thinking one might create in Photoshop a tillable 'render cloud" image that could be used as a specular mask. Any thoughts?

I added a specular modifier to the terrain shader which isn't too bad, with particle rain and SFX it's not too shabby but not great either.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

perhaps consider affecting the normal as well in coordination with the specular?

(thinking puddles tend to wash out --sorry for pun-- the bump detail they're sitting on top of...although

I do like the gradient effect of the second image around the shiny edges--the puffy outer edge

seems off though)

 

Seems like you'd definitely need multiple UV-channel support for anything affected by your rain shader.

 

(I'd guess there is probably a UDK shader example out there somewhere too)

Vista Ultimate SP1 64bit | Q6600 2.40 GHZ | 8GB RAM | 320MB Nvidia 8800GTS

Link to comment
Share on other sites

..masked cubemap+normalmap(animated rain drop) will do just fine..

 

OK that makes sense. This would need to be applied to every exterior material when it rains.

 

It's possible to do this with a post-processing shader that perturbs the normals using an animated texture and a calculation of the surface normal.

 

Sounds too easy, I bet there's a catch. Besides my shader programming isn't savvy enough to do this in a reasonable amount of time but the principle seems sound.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

You just get the world position and normal of each pixel, round off to the nearest XZ direction (there are four possible). Use that for the vertical component of rain sliding down. Then add in raindrops based on the Y component of the normal. You can do something similar for snow accumulation...someone posted a video of it working.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

and how would you solve the problem with no raindrops in the interior or where raindrops just shouldnt hit (under a table).

 

i don't know which engine it was, but there was an engine which implemented it as a light type (don't know how far thats possible in LE). But if you dont care if it rains under your objects or in the interor a post process shader should do the trick pretty much.

Link to comment
Share on other sites

I think you are thinking of STALKER, they called it a "rain shadowmap". That's just it, you do a depth render to a texture, then use that in the shader to tell where the rain is allowed.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

You just get the world position and normal of each pixel, round off to the nearest XZ direction (there are four possible). Use that for the vertical component of rain sliding down. Then add in raindrops based on the Y component of the normal. You can do something similar for snow accumulation...someone posted a video of it working.

 

I think you are talking about this video. http://www.leadwerks.com/werkspace/topic/3410-real-time-snow-accumulation/page__view__findpost__p__31134

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...