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 › Self-Generating Dreamcatcher
Page Index Toggle Pages: 1
Self-Generating Dreamcatcher (Read 921 times)
Self-Generating Dreamcatcher
Dec 15th, 2006, 6:59pm
 
I need some help figuring this out conceptually and in step by step coding. I've been toying with trying to get this code to generate a dreamcatcher shape, and that means changing the randomness to something defined. But how to do that?

Alternatively, if this attractor particle code is just too difficult to work with, I could look into another method of creating a self-generating dreamcatcher, although I've been working with this so long...

Code: http://www.sfu.ca/~bdillon/dreamcatcher/applet/
Dreamcatcher (feathers can be removed, just to give an idea of the shape): http://www.sfu.ca/~bdillon/dreamcatcher/data/dreamcatcher.jpg

Here's what doesn't work:
- Using a mask to cover the particles, making it appear as though the dreamcatcher is forming by only allowing the particles in that shape to appear.

- Drawing the dreamcatcher as an invisible image at the background, picking a pixel coordinate randomly and extracting the color of the point from the image so that if the color is not black, it draws a particle.


Here's what's too much for my mind to grapple with:
- Designing classes extended from current particle algorithms (circle, inner net) and assigning appropriate values to each of class instances.


Hmm.
- Beth
Re: Self-Generating Dreamcatcher
Reply #1 - Dec 16th, 2006, 5:43pm
 
Well, the thing you've got right now might not be making dreamcatchers, but what it is making looks pretty cool!
Re: Self-Generating Dreamcatcher
Reply #2 - Dec 16th, 2006, 8:52pm
 
Mmm masks...

http://www.sfu.ca/~bdillon/dreamcatcher/applet/
Page Index Toggle Pages: 1