Water Effect

Started by
1 comment, last by Guimo 19 years, 7 months ago
Hi all, I want to leave the precreated water in my game as it looks too fake. http://www.spritekin.com/warscale/screen5.jpg http://www.spritekin.com/warscale/screen7.jpg I want to create a water effect, like the one in Farcry, where the water reflects the background in a wavy pattern.... like: http://farcry.ngz-network.de/gfx/pic008.jpg http://farcry.ngz-network.de/gfx/pic048.jpg http://farcry.ngz-network.de/gfx/pic030.jpg http://farcry.ngz-network.de/gfx/pic106.jpg http://farcry.ngz-network.de/gfx/pic115.jpg Now, is obvious the polygon is just a big flat square over all the scene. The scene is projected over that flat polygon. Thats easy. What I want to know is how they deform the picture into that wavy pattern. My idea: a. Consider the water surface like a mirror. Easy. b. Render the scene into a texture from a 'mirrored' point of view about the surface. Easy. c. Process the texture into a wavy pattern. This process is affected by time. HARD d. Render the water using that texture. Poligon is 50% transparent. Easy. Water ready! Now... how do I manage that animated wavy effect image processing. Any idea? Luck! Guimo
Advertisement
Take a look at Yann's Water I article. The link is still on the main Gamedev page under hardcore programming.
-----------------Always look on the bright side of Life!
Thx!

This topic is closed to new replies.

Advertisement