java
Boids
Boids is a flocking simulator programmed in Java. It was made as a school project and uses the Processing framework for the UI.
- Runnable JAR. Beware of the special window management (non-resizeable 1200x800, no decorations, Esc exits). Arrow keys zoom and change simulation speed.
- Source code (SVN)
The screenshot is not very exiting, the movement is the point here...
Boids
2009-05-16As I mentioned in my previous post, I made a Boids simulation in Java as a school project. The course is now over, so I published the source code under the GPL. It can be accessed via svn from http://svn.beatwaves.net/svn/boids.
It uses the Processing library for the UI and you will need to download the Processing 'core.jar' separately to build and run the application. Processing is released under the LGPL, so I could include the jar in my svn repository also, if I only found the right source code to distribute with it. But I didn't find it right away and I'm lazy, so you'll need to download this your self :)
The version in svn uses the Processing P3D renderer by default, but it should be fairly easy to get it to work with the OpenGL renderer also. You just need the right libraries in your classpath and change (comment/uncomment) a few lines in the source code.
I found out after coding this, that someone else made a very similar implementation in Java also. Great minds think alike and so on...
For me this was just a (rather interesting) school project and I'm not interested in continuing work with it. But if you find it (or parts of it) worth developing further, please leave me a comment and tell me what you are doing with it!