ants simulation
Hugh Lomas1 HN recommender · recommended in 1 month, 2014-2022
2K views · 12 years ago · demo · evergreen
A one-minute visualization of a simulated ant colony in which ants follow pheromone trails, with the source code on GitHub. It shows emergent behavior arising from simple rules.
Linked in ant-simulation threads as a compact, open-source example of emergent behavior.
17:54Coding Adventure: Ant and Slime Simulations
Sebastian Lague
2.2M views • 5 years ago
16:01How life emerges from a simple particle motion law: Introducing the Primordial Particle System
Artificial Life Lab Graz
497K views • 9 years ago
4:09Evolved Virtual Creatures (1994)
karlsims
43K views • 6 years ago
1:30Life in life
Phillip Bradbury
4.1M views • 14 years ago
3:37SmoothLifeL
Tim Hutton
312K views • 14 years ago
4:10Karl Sims - Evolved Virtual Creatures, Evolution Simulation, 1994
MediaArtTube
797K views • 17 years ago
1:07:26Procedurally Crafting Manhattan for Marvel's Spider-Man
GDC Festival of Gaming
89K views • 7 years ago
6:02OpenAI Plays Hide and Seek…and Breaks The Game! 🤖
Two Minute Papers
11M views • 7 years ago
42:00I painted a Landscape with Mathematics
Inigo Quilez
812K views • 4 years ago
26:13Animation Bootcamp: An Indie Approach to Procedural Animation
GDC Festival of Gaming
786K views • 9 years ago
10:14Making a heart with Maths
Inigo Quilez
112K views • 9 years ago
29:16SYMBOLICS S-PACKAGES 3D GRAPHICS AND ANIMATION DEMO
Red Martian
14K views • 13 years ago
10:44P vs. NP and the Computational Complexity Zoo
hackerdashery
3.7M views • 12 years ago
2:01Enemies – real-time cinematic teaser | Unity
Unity
1.9M views • 4 years ago
13:23Simulating Green Beard Altruism
Primer
4.5M views • 5 years ago
5:37Journey on the Deep Dream
Roger Luedecke
598K views • 11 years ago
24:02Learn to Paint with Mathematics
Inigo Quilez
191K views • 12 years ago
5:58MarI/O - Machine Learning for Video Games
SethBling
11.5M views • 11 years ago
18:25Building pi in a World of Slop — Mario Zechner
AI Engineer
579K views • 6 months ago
5:21Flexible Muscle-Based Locomotion for Bipedal Creatures
Goatstream
1.9M views • 12 years ago
3 comments from Hacker News
This is great to see. Years ago I created a basic simulation using the same principles of pheromone gradients, one for the nest and one for food. ▶ this video It a fascinating example of emergent behavior from simple rules. I've been wanting to find time to revisit the concept and produce an updated version, your simulation seems to include everything I wanted to do and more.
Take a look at this visualization ▶ this video There's a repo in the description. Might not be specifically relevant to your project though
I loved reading this because I made something exceedingly similar a few years ago, and I'm similarly fascinated with how complex behavior can emerge from such simple rules. ▶ this video My ants also had no conception of where their home was located, their behavior is entirely pheromone driven. They can "read" pheromones from any adjacent cell. They leave a pheromone every movement depending on which state they are in, either "find food" or "return food". In my system, the pheromones have a strength. Whenever an ant touches the nest, his "nest pheromone" is at full strength (255). Each movement decreases the strength by 1. This sets up a natural gradient of nest strength for ants to follow. They also "deteriorate" each round as yours do. A similar setup is used with food, such that a high food scent is created when they pick up food, and decreases in strength as they return to the nest. So to find food, they try to move up a food gradient or down the nest gradient (away from the nest), while to return food they move up the nest gradient (towards the nest). Their searching consists of a random walking into cells that have no nest scent, or following a food trail. They have an energy cost for moving, and if it's too low they have to eat a piece of food. Returning a piece of food to the hill spawns a new ant. The lines on the right side show the population of each colony and the total food on the board. From these extremely basic rules, they are very efficient at clearing the "world"