- Home /
2D water shader effect
I want to make some water effect in my isometric sprite game. I like the one on the video: http://www.youtube.com/watch?v=yIvR14_IcD0
Any suggestions? Or, at least any keywords on mathematical algorythm will be appreciated.
PS: No reflections needed.
Answer by Lttldude · Apr 09, 2012 at 02:03 AM
I think you should be able to do that effect with a couple 2d planes with textures. Have one for the base water (dark blue/light blue for coast). And animating 2d textures that are transparent to lay on top of the water texture. It looks like only the water waves are being animated, and they are definitely looping. You should be able to use the same sprite animation for all the water by just duplicating and starting aniamtion at a different frame.
Links: Look into the animating smoke section (it's for particles but same concept I believe): http://forestjohnson.blogspot.com/2007/12/particle-effects-tutorial.html
http://www.unifycommunity.com/wiki/index.php?title=Animating_Tiled_texture
Hope this makes sense. Good Luck.
Sorry, but your answer can be simplified to "just make an animated texture" and that's not helpful :)
First of all, I'm not sure that the caustics on the video made with an animated texture. Is it possible to make these with mathematical run-time calculations (like plasma effect)?
And if it is made by anmating a texture - then the main question would be "what software can generate such animated water texture".
The caustics on the video are definitely an animated texture. It is possible to do at run-time, but expensive, and in general you're better off with animated textures, if you don't need real-time lighting and reflection effects. There are a few caustic generating programs you can find, just a quick google will find several.
Your answer
Follow this Question
Related Questions
How to detect collision with shaders? 0 Answers
Reflective/refractive 2D material, like static water. 0 Answers
Help with Liquid Physics2D 0 Answers
angrybot water shader lagging problem 0 Answers
Puddle reflection effect 2 Answers