I was watching ants crawl across the ground, and even though the ground had no apparent path, the ants would always walk along in the exact same pattern. This inspired me to look into how ants always seemed to know where they were going despite no visible path. This introduced me to how ants use pheromones to track to food and home. I decided to implement this in my project. The idea was to create relatively simple rules among all of the ants which in turn would lead to a collective intelligence when many ants were spawned together.
Timelapse of pattern creation from ants with music: https://youtu.be/OgPaR_nyR2E
Video of implosion behavior produced by colony: https://youtu.be/7pEteR24OeY
Below are images from the food implementation aspect of the project. The block of green pixels represents food. The large yellow block of pixels represents an obstacle. The pink circle in the middle represents the ant colony home, and the number ontop of it is the amount of food they have brought back to their colony.
Ants
- Light Blue Ant: Ant without food
- Dark Blue Ant: Ant with food
- Light Blue Path: Home pheromones
- Red Path: Food pheromones
Environment
- Green: Food
- Yellow: Obstacle
- Pink: Ant Colony Home
- Number: Amount of food obtained
The ants are all released from the center at once (the ant colony home).
Ants discover the food for the first time.
The paths become more solidifed.
Overtime, the paths are optimized to reduce distance. They tighten up and the ants walk past the blockade more efficiently.