hi boys and girls,
letŽs say i want to render a watersurface with GEM or pdp (opengl) or gridflow. and use the mouse to click onto it and produce some waves. has someone already produced similar things and can give me some hints?
Are there some general algorithms for that, or do I have to calculate lightreflections of tons of small squares and rectangles...
marius.
At 8:58 PM +0100 11/29/03, marius schebella wrote:
hi boys and girls,
let´s say i want to render a watersurface with GEM or pdp (opengl) or gridflow. and use the mouse to click onto it and produce some waves. has someone already produced similar things and can give me some hints?
Are there some general algorithms for that, or do I have to calculate lightreflections of tons of small squares and rectangles...
Try the ripple object in GEM. It makes a nice water rippling effect on a plain quad. The newwave object also creates wave like motions across a triangle mesh as well. These are both in CVS.
cgc
marius.
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hello,
I've make smalls modification to newWave object for the simulation of this kind of surface. (I add a damping parametter for making smooth surface) you can find everythings here:
http://drpichon.free.fr/pure-data/GEM/newWave/
(.dll + .cpp + .pd)
cyrille
chris clepper wrote:
At 8:58 PM +0100 11/29/03, marius schebella wrote:
hi boys and girls,
let´s say i want to render a watersurface with GEM or pdp (opengl) or gridflow. and use the mouse to click onto it and produce some waves. has someone already produced similar things and can give me some hints?
Are there some general algorithms for that, or do I have to calculate lightreflections of tons of small squares and rectangles...
Try the ripple object in GEM. It makes a nice water rippling effect on a plain quad. The newwave object also creates wave like motions across a triangle mesh as well. These are both in CVS.
cgc
marius.
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Very nice. This has been on the TODO list for a while - thanks for doing it.
You need to have developer access to the GEM CVS so you can commit things like this. Plus you can compile Windows binaries, which are good to have.
cgc
At 10:45 PM +0100 11/29/03, Cyrille Henry wrote:
hello,
I've make smalls modification to newWave object for the simulation of this kind of surface. (I add a damping parametter for making smooth surface) you can find everythings here:
http://drpichon.free.fr/pure-data/GEM/newWave/
(.dll + .cpp + .pd)
cyrille
chris clepper wrote:
Very nice. This has been on the TODO list for a while - thanks for doing it.
thanks
You need to have developer access to the GEM CVS so you can commit things like this.
wowww, that would be great ;-)
This object was disign for personal use : it's not 100% compatible with the original newWave object. so, I'll try to make some change for a better compatibility and then commit it to my server...
cyrille
Plus you can compile Windows binaries, which are good to have.
cgc
At 10:45 PM +0100 11/29/03, Cyrille Henry wrote:
hello,
I've make smalls modification to newWave object for the simulation of this kind of surface. (I add a damping parametter for making smooth surface) you can find everythings here:
http://drpichon.free.fr/pure-data/GEM/newWave/
(.dll + .cpp + .pd)
cyrille
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hey
You can always use the cheap demo trick (aaah the good old days) http://freespace.virgin.net/hugo.elias/graphics/x_water.htm I still use it. .:)
Tom http://www.nullpointer.co.uk http://www.r4nd.org
----- Original Message ----- Hey,
From: "Cyrille Henry" cyrille.henry@la-kitchen.fr To: "chris clepper" cgc@humboldtblvd.com Cc: "marius schebella" marius.schebella@chello.at; pd-list@iem.at Sent: Sunday, November 30, 2003 12:29 PM Subject: Re: [PD] watersurface
chris clepper wrote:
Very nice. This has been on the TODO list for a while - thanks for doing it.
thanks
You need to have developer access to the GEM CVS so you can commit things like this.
wowww, that would be great ;-)
This object was disign for personal use : it's not 100% compatible with the original newWave object. so, I'll try to make some change for a better compatibility and then commit it to my server...
cyrille
Plus you can compile Windows binaries, which are good to have.
cgc
At 10:45 PM +0100 11/29/03, Cyrille Henry wrote:
hello,
I've make smalls modification to newWave object for the simulation of this kind of surface. (I add a damping parametter for making smooth surface) you can find everythings here:
http://drpichon.free.fr/pure-data/GEM/newWave/
(.dll + .cpp + .pd)
cyrille
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
On Sat, 29 Nov 2003, marius schebella wrote:
let´s say i want to render a watersurface with GEM or pdp (opengl) or gridflow. and use the mouse to click onto it and produce some waves. has someone already produced similar things and can give me some hints?
Alexandre Castonguay and I have presented a watersurface touchscreen at Ottawa Art Gallery in June of this year. That will be shown in Montréal in April 2004 or so. I did it using GridFlow, of course.
Are there some general algorithms for that, or do I have to calculate lightreflections of tons of small squares and rectangles...
Yes.
GridFlow does not provide a watersurface object, and instead provides the building blocks for making one. I find it surprising how ordinary the involved objects are (!).
You can compute the waterlevels in, say, 76800 buckets, by use of a discrete wave ("Laplacian") operator (use @convolve) and a rather simple recurrence equation (involving [@ -] and @store).
Then you can either differentiate it (@convolve) to find slopes and imitate illumination (which I've done) or use it as a displacement map ([@ +], @for, @store) to simulate refraction, or both.
Here's a screenshot involving only refraction, over a camera stream. The screenshot includes all information necessary to the recreation of the effect in GridFlow.
http://artengine.ca/jmax/gridflow/gallery/waves2.png
It does it in 120*160 and then scales it, but I can also make it work in 240*320 @ 30 fps here if I tweak the patch a bit (eg: removing the second window)
I like the one with only reflection too, as it makes the actual wave most easy to see on a screenshot:
http://artengine.ca/jmax/gridflow/gallery/wave.png
The final version did both refraction and reflection all-in-one.
Mathieu Bouchard http://artengine.ca/matju