Note that there are some explanatory texts on larger screens.

plurals
  1. POPygame water ripple effect
    text
    copied!<p>I have Googled for it but there are no ready scripts - as opposed to the same effect on Flash. I have checked the algorithm on <a href="http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/the-water-effect-explained-r915" rel="noreferrer">The Water Effect Explained</a> and also tested an implementation of the <a href="http://twistedmatrix.com/users/acapnotic/wares/code/perlin/" rel="noreferrer">Perlin Noise</a>, which provides a good simulation of the end of waves on a flat surface. I am looking for the same implementation found on several Flash Effects, based on mouseover/hover actions. This is targetting an interactive floor library, and I would enjoy moving away from Flash for this matter, particularly to avoid such easy reverse-engineering of the code - and yes, I know it could just use some ready-made flash code, but I would only use that as a last resort.</p> <p>Has anyone seen a suitable implementation of this effect for Pygame (using OpenGL or not)?</p> <p><strong>EDIT:</strong> <em>Can anyone provide a suitable implementation of this effect using OpenCV/OpenGL and Pygame?</em></p> <p>The culprit here is the (code) interface to pass a list of values that will be sent from an external interpreter (tracker - not TUIO though) via Python. I have tried for some straight days but Pygame is not able to generate anything as fast as sheer C/C++ code (as used for the shaders in OpenGL), and my knowledge of C/C++ is null. So the target is to at least have that coming from Python code.</p> <p>A good example, different from the Flash effect but that is still good is <a href="http://neilwallis.com/projects/java/water/index.php" rel="noreferrer">Water Simulation using Java applet</a>.</p> <p>(bounty is showing answers do not have enough detail since this was the closest to 'the OP is incapable of creating the code he wants to as he lacks fundamental skills and this answer will probably be of use to several people').</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload