FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   Ripples
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Ripples  (Read 1063 times)
jen

Email
Ripples
« on: Apr 3rd, 2004, 10:56am »

Hello  
 
I am trying to create ripples that are influenced by a number which I pass to the function via a database. I want to have four points that the ripples come from. I was wondering if there are any examples like that any one has done or any sugestions on where to start?
 
rgovostes

rgovostes
Re: Ripples
« Reply #1 on: Apr 9th, 2004, 12:00am »

I tried implenting this algorithm, but I didn't have much luck. It's not a very complicated one, though.
 
Quasimondo

WWW Email
Re: Ripples
« Reply #2 on: Apr 9th, 2004, 1:15pm »

That's a real nice algorithm - thanks for the link. Looks like that Hugo Elias site offers a lot of interesting topics.
 
I've managed to transfer his ripple algorithm to Processing (and added a little blurring):
http://incubator.quasimondo.com/processing/raindrops.php
 
Sourcecode:
http://incubator.quasimondo.com/processing/ripples.pde
 

Mario Klingemann | Quasimondo | Incubator | côdeazur
miked


Re: Ripples
« Reply #3 on: Apr 12th, 2004, 11:56pm »

hi jen,
 
I'm developing a (hopefully educational) radiation simulation for a physics course I'm associated with:
 
http://web.mit.edu/mdanzig/www/p5waves_2d_hi.html
 
Which uses a basic convolution algorithm (or "Finite Difference Time Domain" technique, if you want to be fancy) to simulate waves or ripples in a medium.  Maybe this is useful to you?
 
-mike
 
ps.  Sorry the code is a mess, but it's a work in progress  It's also probably not particularly optimized.
 
pps.  Processing is great!  I just discovered it a couple of weeks ago.  Coming from Director it's a breath of fresh air.
 
Quasimondo

WWW Email
Re: Ripples
« Reply #4 on: Apr 13th, 2004, 10:05am »

Wow, very cool - thanks for posting this mike!
 

Mario Klingemann | Quasimondo | Incubator | côdeazur
lunetta

7200475272004752 WWW Email
Re: Ripples
« Reply #5 on: Apr 13th, 2004, 3:30pm »

wow
this applet is really really good...
I kept struggling a week to do something like this, and you did a much better job...  congratulations!
 
 
Pages: 1 

« Previous topic | Next topic »