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.
IndexDiscussionExhibition › 'fuzzballs' sketch
Page Index Toggle Pages: 1
'fuzzballs' sketch (Read 765 times)
'fuzzballs' sketch
Jul 17th, 2008, 7:10pm
 
Wanted to teach myself more about OOP, and motion interaction.  Made a sketch that sort of simulates 'fuzzballs' interacting with one another.  If you can imagine a bunch of little balls shooting out energy to one another, pushing each other around when within range.

Notes\images\video about it on my blog:
http://warpcat.blogspot.com/2008/07/fuzzballs03.html

You can find the source for it here:
http://processingwiki.tiddlyspot.com/#FuzzBalls03

I don't have anywhere currently to post the compiled sketch online, but just grab the source, and you can play with it.  We'll see what it evolves into...
Re: 'fuzzballs' sketch
Reply #1 - Jul 17th, 2008, 7:39pm
 
Very nice. I would like to see a button to clear the screen. Just a minor suggestion. Also the code references a specific vlw file. I changed the loadFont() to createFont("Arial", 12).
Re: 'fuzzballs' sketch
Reply #2 - Jul 17th, 2008, 8:07pm
 
Thanks, I'll update my code.  That sketch was the first time I've ever used fonts.. was sort of plug-n-play there Wink

- Added the ability to clear the screen, and turn on\off 'magnets' on the fuzzballs.
Re: 'fuzzballs' sketch
Reply #3 - Jul 19th, 2008, 3:12am
 
Hey this is cool, I've had fun with it.

Did you try running it with opengl? It runs A LOT faster(read: more balls) but looks different, but you can fix it I think.
Re: 'fuzzballs' sketch
Reply #4 - Aug 5th, 2008, 1:45am
 
I haven't yet.  My 'next stage' was to make it full 3d... I'll get around to it eventually Wink
Re: 'fuzzballs' sketch
Reply #5 - Aug 5th, 2008, 1:54am
 
Sorry if I'm stating the obvious but you don't necessarily have to recode your sketch for 3d to utilize opengl.

Just change "size(x, y)" statement to "size(x, y, OPENGL)" and import opengl libraries to your sketch. Current opengl implementation has some problems with outlines of 2d objects so it looks a bit funny now though.
Page Index Toggle Pages: 1