blog.kfish.org

My name is Conrad Parker, and I live in Kyoto, Japan. I work with Renesas in Tokyo, designing the Linux multimedia architecture for a new line of mobile processors; and for Wikimedia Foundation, working on Ogg integration for Mozilla Firefox. I am also working towards a PhD in Computer Science at Kyoto University. Free software projects include the Sweep sound editor and the Annodex media system, and various smaller ones that you can read about here.

Friday, 16 September 2005

Killer boids, flocking in circles!

In 1996 I wrote a boids applet in Java, and it was shown in art galleries and stuff. Those were wild and crazy times.

O'Reilly recently released Killer Game Programming in Java by Andrew Davison. A sample chapter about Flocking Boids [PDF] is available online, and it's a very interesting read. The design of the Java code in that chapter references an article I wrote describing the boids algorithms in pseudocode, which in turn was based on my old Java code. The book brings that code full-circle, and adds some cool predator/prey behaviour and obstacle avoidance. And real trigonometry -- luxury!

Apparently my idea of pseudocode at the time was an over-processed mash of Pascal and Basic, spooned out so as not to offend anyone's language preferences (or in order to offend everybody's equally). If you'd like to be offended in the language of your choice, there are also versions in C, Python and Javascript/DHTML linked on my boids page.

Labels:

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home