miked
YaBB Newbies
Offline
Posts: 2
MA
Re: ripples
Reply #5 - May 5th , 2005, 11:46pm
Looks great, flight. I was really in to waves for awhile, and wrote a bunch of simulations based on a similar type of algorithm to what you're using. Sorry if I've posted these already in the past! The full "educational" applet: http://web.mit.edu/mdanzig/www/waves2d.htm Some variations: http://web.mit.edu/mdanzig/www/rings.htm , http://web.mit.edu/mdanzig/www/field.htm A Shockwave3D version (warning, this one can be kind of flakey, and will definitely hose browsers on a Mac, for reasons I've never quite figured out): http://web.mit.edu/mdanzig/www/sw_waves.htm I can probably dig up the source code if you're interested, but I think I did these in 0068 or something, so it won't be up to date. I also had a 3d version of the Processing ones, but I think the source was lost when my laptop was stolen awhile back (bastards!). In any case, yours looks much better. I really like the lighting effects you've added! Have you tried taking 8 samples at each point, rather than 4? I found that smoothed mine out quite a bit. Also, what I found really great about this algorithm is that reflections/diffraction/interference falls right out of it when you start adding "walls" (see the first one I posted for an example). Basically you just fix the positions of elements that are flagged as walls, and the waves will bounce right off them... good times. Anyways, great work! -mike ps. just started visiting this site again after an extended absence, and I'm really impressed with the new versions of Processing. The OpenGL stuff is great, and everything seems much faster in general. Good work, everyone!