Jump to content
  • Advertisement
Sign in to follow this  
Guimo

Water Effect

This topic is 5040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!