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

Started by
4 comments, last by Haladria 14 years, 10 months ago
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.
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.
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..
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?
You can also use glMatrixMode(GL_TEXTURE) and then apply a glTranslate to move your texture across the surface of your geometry.
I have collected some links to different methods to render water here:
http://www.gamerendering.com/category/water/

This topic is closed to new replies.

Advertisement