Hi I have been trying to simulate Tsunami waves hitting the land. I also have to take the input of the wave height from the user.
I have been trying to do so for long, but no success. Please help me in detail as I am totally new to graphics. This is my academic project.
Simulating a Tsunami
Computational fluid dynamics is something that you don't really want to do for your first graphics project. You're probably biting off more than you can chew.
My suggestion would be to find a 2d pebble ripple simulation - (there are a lot around) and make it much bigger on a terrain node. Add some billboards to make the water foamy (at the end of the wave) and it's a pretty good approximation. This solution would look kinda cheap though.
If you want something more serious - ie water avoiding buildings and swallowing up objects you could look around for a good physics engine. There are some good bindings around on the forums.
My suggestion would be to find a 2d pebble ripple simulation - (there are a lot around) and make it much bigger on a terrain node. Add some billboards to make the water foamy (at the end of the wave) and it's a pretty good approximation. This solution would look kinda cheap though.
If you want something more serious - ie water avoiding buildings and swallowing up objects you could look around for a good physics engine. There are some good bindings around on the forums.
if you use 2d water height field to do this water animation, Frank Luna's water sample in Game Programming Gem 6 will be helpful. It use vs texture fetching, but you can just do it in CPU.
if you want to simulate some breaking wave and more physical plausible simulation, you'll have to look at some papers on using 3d water simulation or water particle simulation.
if you want to simulate some breaking wave and more physical plausible simulation, you'll have to look at some papers on using 3d water simulation or water particle simulation.
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am