Skip to main content
gamedev.net
🔒 Locked

Water Simulation

Started by asd_de 3 replies 500+ views
Original Post
asd_de
asd_de
Hello, does anybody out there know some ready algorithm / tutorial on how to generate animated water waves on a 2d or 3d texture? thx, asd_de
Mikey
Mikey
http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
asd_de
asd_de
Yeah, i''ve seen some of those tutorials about this cool 2D wave effects, there is even one on gamedev.net (though I do not remember exactly where). What I want is an effect rather like the one at
http://www.demon.co.uk/davidg/lake.htm
Mikey
Mikey
Yeah you can achieve something similar using this effect. You treat the results from your 2D effect as a heightfield in 3D, then create random disturbances which will give you ripples.

A more accurate way of doing it would be to solve the Navier Stokes equations in 2D, but this is both complicated and expensive, and you wouldn''t notice much difference for this kind of application.

For surface effects there are a number of things you can do - reflections, environment mapping, animated texture, or you could just leave it untextured and apply specular lighting, which looks very nice.

Mike.
asd_de
asd_de
Yeah, thanks you all!! I will do it the way mikey said,

asd_de

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.