I found this vid: http://www.youtube.com/watch?v=eVi6ThY3LRs I wonder if that's some kind of standard effect of openGLES. I'm pretty sure it is, since I have seen this pretty often. KoiPond uses it, DuckDuckDuck uses it. A lot of games use it. They're not all astronauts. They're normal programmers ;) So how is this done? Is there any tutorial for this on the web?
For an old example have a look at the 'distort' example. Note that this is a thing created back in 1992 (just looked in distort.c).
Awesome program that causes ripples in the image wherever the mouse button is pressed. Another mode of the program acts like a sheet of rubber and can be pulled by dragging the mouse.
I managed to compile the example on my mac.
#include <GL/glut.h>
to #include <GLUT/glut.h>
usleep(33*1000);
in the idle()
functionripple_precalc.c
to ripple_precalc.c.org
(or just rm it)cc *.c -framework GLUT -framework OpenGL
" will create an a.out
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With