by mattkirman on 2/25/11, 7:08 PM with 32 comments
by RiderOfGiraffes on 2/25/11, 8:18 PM
http://news.ycombinator.com/item?id=2246089
although it gains very few upvotes, and no comments. More evidence that getting noticed is largely chance, or gaming.
by swannodette on 2/25/11, 8:11 PM
by Breefield on 2/25/11, 9:56 PM
Here's an implementation I wrote last month for fun: http://breefield.com/lab/flock. It doesn't have much bias in terms of direction (there's no wind, or patterns to follow), so there's generally one large swarm. Click-drag to create repellers, boids follow mouse. The white center of each boid shrinks at it's velocity increases, and the inverse happens to it's red direction line. Purple specks indicate perceived center of nearby flock. The rest is just aesthetic.
It's always super interesting to see other implementations in action, so please share more in your comments, if you have them. I'd certainly love to see them.
by nihilocrat on 2/25/11, 9:57 PM
It kind of worked, there were issues with stragglers and making it look organic that I couldn't fix in time. If ships got too far outside the formation sometimes they would only try aligning with the leader instead of catching up first. Also, when they did get in formation, they were eerily good at matching the leader's alignment: all ships would turn in unison and kind of ruin the organic feel of the pure flocking algorithm.
by krisneuharth on 2/25/11, 9:20 PM
At a research company I worked at we used swarming concepts for controlling swarms of sensors, robots, and UAVs. We also used ant colony optimization techniques mixed with genetic algorithms to do predictive intelligence. Really powerful stuff.
by mccutchen on 2/25/11, 9:15 PM
http://humortree.org/projects/flock03/
(Java applet warning!)
The source code is here:
https://github.com/mccutchen/humortree.org/tree/master/proje...
by mgunes on 2/26/11, 1:05 AM
by joshes on 2/25/11, 7:31 PM
by kamens on 2/25/11, 8:23 PM
Such a simple algorithm w/ such a cool result.
by corysama on 2/25/11, 9:12 PM
by hebejebelus on 2/25/11, 9:53 PM
by tjarratt on 2/25/11, 9:37 PM
Thank you, everyone in the comments who submitted source code or demos. You never know when something you upload will really brighten someone's day (even if it's written in java).
by mirkules on 2/26/11, 4:42 PM
For anyone interested, here is the Craig Reynolds page that describes the flocking behavior http://www.red3d.com/cwr/boids/
by pjvandehaar on 3/2/11, 1:53 AM
by thefox on 2/25/11, 9:01 PM
by meatsock on 2/25/11, 11:33 PM
by VladRussian on 2/25/11, 8:49 PM