Jump to content
  • Advertisement
Sign in to follow this  
sobeit

OpenGL help with interactive water effect

This topic is 2522 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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...).

Share this post


Link to post
Share on other sites

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. ;-)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!