Flocking Algorithms and Processing.org

flocking boids

I’ve had some time to reflect on Anthony’s flocking workshop of last Thursday.

First we made a scaffolding to create and control the array of objects. The objects are called boids (a corruption of birds). The scaffolding is a a basic Java object oriented pattern of having a stub to call a Boid-Controller which in turn calls the Boid class.

The three main facets of flocking algorithms are Separation, Cohesion and Alignment.

We implemented each of these facets separately. Here is the affect of each of the three flocking forces.

code

Flock Modeling workshop at ArtEngine tonight!

August 11th, 7PM
Flock Modeling with Processing
Anthony Scavarelli
blog.anthony-scavarelli.com

6:45pm: I’m here now and people are already showing up.

10pm: Wow, that was very interesting!!! Also very fun. Anthony did a complete walkthrough of his amazing sample code. We tried a few variations of some of the parameters to get different behaviors. Very worth coming to!!!