- Home /
Water drops camera effect
Hello, i am making a FPS and i want to create a water drops image effect, like in Metro LL.
How could i script this? Thanks in advance!
Answer by DavidDebnar · Jul 15, 2013 at 11:07 AM
What they did in Metro LL is they had a plane really close the the camera and with a low render queue (low rq = rendered first), which acted as a surface for the drops. These drops are then rendered with a special shader, a shader that basically does all the hard work. It makes the droplets look 3d, refracts the world in them, etc. You can either write your own shader to do this, or look at the Pro Standard Assets' FX/Glass/Stained BumpDistort shader in which each drop is a point on the texture. Once you have this setup, you can move on to the second part, making them animated.
If anything from this was unclear, feel free to comment and I'll try to clarify it further.
--David--
Answer by Maserat · Jul 15, 2013 at 02:35 AM
You can use a GUITexture. Or a 2D Image Sprite as a child to the camera object, really small and close to the camera, and just change the opacity.
O$$anonymous$$, but Texture drops would be static. In $$anonymous$$LL (and all other games with this effect), drops aren't just static textures, they refract light, they combine and split (i don't want them to do this for now), etc. GUI texture wouldn't do anything like that.
Answer by kilian277 · Jul 15, 2013 at 10:46 AM
Look at the unisky asset in the assetstore it has dynamic rain drops on the camera.
Check out how they did it.
(it is ofc a paid asset)
Answer by Efgames · Dec 12, 2013 at 11:56 PM
Did you ever figure out how to do your water effect?
I'm also looking into this and trying to do a similar effect, but for a mobile game.
Answer by gwydion1 · Aug 24, 2020 at 07:55 AM
https://www.youtube.com/watch?v=OG7zyogrUTs just gunna drop this here its not from me but its worth checking out