I have had a look at
Eye for an Eye, which is very nice.
I downloaded the code, and downloaded and installed the referenced libraries (
Traer Physics and the
Genetic Algorithm Library created by the sketch's author).
The
only Processing change is framereate() being renamed to frameRate(), and when I tried to "Run" the sketch, the
Processing Language (API) - Changes page popped up in a browser window to tell me about it.
There are also (documented) changes to the Traer Physics library, and undocumented changes to the Genetic Algorithm library.
After an hour or so of working on it, I have a sketch running under Processing 1.0.9. The behaviour, however, is broken, and I suspect it has something to do with the notes for Traer Physics relating to what was previously the kill() method:
- The library no longer automatically deletes forces with dead particles.
- void removeParticle( int index )
void removeParticle( Particle p )
Note removing things shifts the indices and the library does not take responsibility for you deleting particles that forces refer to. e.g. if you have a spring between two particles and remove one things will definitely break.
Eye for an Eye is a complex example demonstrating a complex idea using a custom library. The drawing done (which is beautiful) is not by any means simple, and some of the details require an understanding of properties of objects in the custom genetic algorithm library. It has virtually no code comments and would require significant expertise to understand.
This is not an example for a beginner to learn from.
The main page for the
Genetic Algorithm Library for Processing or Java at the RobotAcid site tells you how to contact the author:
Quote:If you put together any work using the GA library Just drop me a line and I'll be happy to link to it here. Same goes for if you find any bugs, typos or just simply don't understand how this library works. Contact me at the Processing forums (st33d) or email me
{ see site for details }
-spxl