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!
help with interactive water effect
Check this paper: "Dynamic simulation of splashing fluids"
Also this presentation and this google search
Also this presentation and this google search
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
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
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
Popular Topics
Advertisement