Sign in to follow this  
Guimo

Water Effect

Recommended Posts

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

Share this post


Link to post
Share on other sites
Take a look at Yann's Water I article. The link is still on the main Gamedev page under hardcore programming.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this