Jump to content
  • Advertisement
Sign in to follow this  
xInfinity

How to create special effects like water effects on my water terrain plane..

This topic is 3359 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'm new here. I want to ask about how to create a water effects on a plane as i find many tutorial, all i don't understand. Anyone have a more simple and easy way to to do it? thank those who help me =D.

Share this post


Link to post
Share on other sites
Advertisement
The simplest way is to put an animated texture on a plane to simulate the water and its movement. If you know how to animate a texture, it should be easy enough.

Share this post


Link to post
Share on other sites
thank anyway..is there anyway for coding? because my image i using is targa file format or can you paste the source code for water effect here and short explanation of the code to me thank for your reply..

Share this post


Link to post
Share on other sites
hey means that youd have like 8 frames of tga files that look like animating water

ie...

water1.tga
water2.tga
water3.tga
...
water8.tga

then, in your code, you texture a flat plane with water1.tga and every so often (every X miliseconds) swap it to the next texture.

when you get past water8.tga, loop back to water1.tga

make sense?

Share this post


Link to post
Share on other sites
You can also use glMatrixMode(GL_TEXTURE) and then apply a glTranslate to move your texture across the surface of your geometry.

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!