help with interactive water effect

Started by
5 comments, last by SuperVGA 12 years, 8 months ago
Hi,
I'm a beginner with opengl and I have already achieved a water effect with ripples and waves. Now I want to implement a interactive water effect, such as continuous waves tracking my mouse and ship generated waves. Is there any existing program I can refer?. Or can anyone offer some ideas, principles or articles on such topics?
Thanks in advance!
Advertisement
Check this paper: "Dynamic simulation of splashing fluids"

Also this presentation and this google search
Thank you for your advice!
something like:
fluid

blog post:
click


go flash go!
If you have already made ripples and waves can you not just continuously create these effects at your mouse position or other objects positions?

I did it once following this tutorial which I found very easy to follow -
http://freespace.virgin.net/hugo.elias/graphics/x_water.htm


Then using this I created a ripples class with a CreateRipple(Vector3 position, float strength) function and made it so when I clicked and dragged ripples would follow my mouse by passing in the mouse position when mouse click was down. Looked very pretty with a bit of tweaking.

x

"To know the road ahead, ask those coming back."

You might also be interested in the WaterSimulation demo in the Hieroglyph 3 engine. While it doesn't directly interact with the mouse at the moment, it does do a simulation that can easily add the interaction in (in fact, that might be coming fairly soon...).

I did it once following this tutorial which I found very easy to follow -
http://freespace.vir...ics/x_water.htm

I second this, it's quite fast (very fast if you're clever)
It's easy to understand and explain to others,
easy to port to 1d, or deliver to a vertex shader.
Finally, it looks quite good too! You should give it a shot. ;-)

This topic is closed to new replies.

Advertisement