We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › code or how to mycelium
Page Index Toggle Pages: 1
code or how to mycelium (Read 1608 times)
code or how to mycelium
Apr 3rd, 2010, 7:59am
 
hi,
I saw this really nice sketch
onecm.com/sketches/mycelium/

how can I implement it? (couldnt find the code)

thank you,
Re: code or how to mycelium
Reply #1 - Apr 3rd, 2010, 8:40am
 
Nice, indeed.
As usual in programming, to get this effect, you have to use blood, sweat and tears... and to burn some brain cells too.

A possible way is to use Brownian motion, in a controlled (not totally random) way, with lot of agents spawning in various directions. Also using semi-transparent pixels to ensure smoother result.
Re: code or how to mycelium
Reply #2 - Apr 3rd, 2010, 8:57am
 
here are some more images and videos http://onecm.com/projects/mycelium/
but yes, phiLho is right, i would say its mostly brownian motion, but as far as i remember, he is "feeding" them the pixelbrightness of an underlaying image, so more growing in lighter parts etc...
Page Index Toggle Pages: 1