
Words of Art V2
A completely rewritten version of the words of art project. This took some time, I initially tried hacking the Crogai c++ classes, but in the end decided to rewrite from scratch. The issue with flocking algorithms is that they are an N * N problem. A flock size of 20 requires 400 interactions between members, 400 members requires 160,000. The solution is to partition the space the entities are in and limit the maximum flock size.
The initial version I developed used numpy (numerical python) to do some fancy matrix math, which while much faster than straight python, was still not fast enough. In the final version partitioning is done in python, and flocking in C++. It was quite difficult to get the flocking behavior to emerge, partially I realised later because my ‘boids’ are acted on by forces (using standard verlet integration), whereas traditional flocking algorithms use velocity.
This version has several species of boids (words) which interact, predators, grazers and zombies. Each word has a significance value indicative of its health and status, words which flock together become more significant, words which are isolated lose their significance. Predators steal significance from others. Zombies are words which have lost their meaning and are not generally visible until they are reborn. Saturation and size of words indicate their current health.
Still some work to do in tuning the populations so that they co-exist and display interesting behavior and some consideration of how to display the final work.