HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

ants simulation

Hugh Lomas1 HN recommender · recommended in 1 month, 2014-2022
YouTube
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.

Creative coding & generative artComputer graphics & rendering#ants#pheromones#emergentbehavior#cellularautomaton#simulation

3 comments from Hacker News

@hughrlomas2022 · in “Show HN: Ants Sandbox - an ants simulator”

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.

CitesView on HN
@newman8r2018 · in “Ant Colonies Retain Memories That Outlast the Lifespans of Individuals”

Take a look at this visualization ▶ this video There's a repo in the description. Might not be specifically relevant to your project though

RecommendsView on HN
@hughlomas2014 · in “Simulating the emergent behavior of ant colonies”

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"

CitesView on HN
Coding Adventure: Ant and Slime Simulations17:54

Coding Adventure: Ant and Slime Simulations

Sebastian Lague
2.2M views • 5 years ago
How life emerges from a simple particle motion law: Introducing the Primordial Particle System16:01

How life emerges from a simple particle motion law: Introducing the Primordial Particle System

Artificial Life Lab Graz
497K views • 9 years ago
Evolved Virtual Creatures (1994)4:09

Evolved Virtual Creatures (1994)

karlsims
43K views • 6 years ago
Life in life1:30

Life in life

Phillip Bradbury
4.1M views • 14 years ago
SmoothLifeL3:37

SmoothLifeL

Tim Hutton
312K views • 14 years ago
Karl Sims - Evolved Virtual Creatures, Evolution Simulation, 19944:10

Karl Sims - Evolved Virtual Creatures, Evolution Simulation, 1994

MediaArtTube
797K views • 17 years ago
Procedurally Crafting Manhattan for Marvel's Spider-Man1:07:26

Procedurally Crafting Manhattan for Marvel's Spider-Man

GDC Festival of Gaming
89K views • 7 years ago
OpenAI Plays Hide and Seek…and Breaks The Game! 🤖6:02

OpenAI Plays Hide and Seek…and Breaks The Game! 🤖

Two Minute Papers
11M views • 7 years ago
I painted a Landscape with Mathematics42:00

I painted a Landscape with Mathematics

Inigo Quilez
812K views • 4 years ago
Animation Bootcamp: An Indie Approach to Procedural Animation26:13

Animation Bootcamp: An Indie Approach to Procedural Animation

GDC Festival of Gaming
786K views • 9 years ago
Making a heart with Maths10:14

Making a heart with Maths

Inigo Quilez
112K views • 9 years ago
SYMBOLICS S-PACKAGES 3D GRAPHICS AND ANIMATION DEMO29:16

SYMBOLICS S-PACKAGES 3D GRAPHICS AND ANIMATION DEMO

Red Martian
14K views • 13 years ago
P vs. NP and the Computational Complexity Zoo10:44

P vs. NP and the Computational Complexity Zoo

hackerdashery
3.7M views • 12 years ago
Enemies – real-time cinematic teaser | Unity2:01

Enemies – real-time cinematic teaser | Unity

Unity
1.9M views • 4 years ago
Simulating Green Beard Altruism13:23

Simulating Green Beard Altruism

Primer
4.5M views • 5 years ago
Journey on the Deep Dream5:37

Journey on the Deep Dream

Roger Luedecke
598K views • 11 years ago
Learn to Paint with Mathematics24:02

Learn to Paint with Mathematics

Inigo Quilez
191K views • 12 years ago
MarI/O - Machine Learning for Video Games5:58

MarI/O - Machine Learning for Video Games

SethBling
11.5M views • 11 years ago
Building pi in a World of Slop — Mario Zechner18:25

Building pi in a World of Slop — Mario Zechner

AI Engineer
579K views • 6 months ago
Flexible Muscle-Based Locomotion for Bipedal Creatures5:21

Flexible Muscle-Based Locomotion for Bipedal Creatures

Goatstream
1.9M views • 12 years ago