Skip to content
0:00 / 0:00

#computeshaders#unity#slimemold

Coding Adventure: Ant and Slime Simulations

Sebastian Lague

1.4M subscribers • 11 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

2.1M views5 years ago7 recommendations

Graphics and audioComputer scienceCreative codingGPUs, shaders and CUDAAlgorithms

Sebastian Lague explores agent-based simulations of ants and slime molds using Unity and compute shaders.

A small exploration of an algorithm inspired by ants, and some little experiments into simulating some of the behaviour of ants and slime moulds. I hope you enjoy! Source code (slime): github.com/SebLague/Slime-Simulation Source code (ants): github.com/SebLague/Ant-Simulation If you'd like to get support the channel, and get early access to future projects, you can do so here: patreon.com/SebastianLague Links to some learning resources and cool videos / projects: Slime pattern paper uwe-repository.worktribe.com/output/980579 Slime write-up and cool examples sagejenson.com/physarum Ant simulation video by Pezzza youtu.be/81GQNPJip2Y Slime video by Deep Look youtube.com/watch?v=Nx3Uu1hfl6Q Physarum project by Michael Fogleman github.com/fogleman/physarum Chapters: Intro Traveling Salesperson Problem Ant Colony Optimization Creating a Visual Ant Simulation Unleashing the Ants! Side-tracked by Slime Single Slime Experiment Multiple Slime Species Music: Forest Overture by Yehezkel Raz Honey Bee Waltz by Kadir Demir Newborn by Roie Shpigler Joking by Kadir Demir Joyfulness by Kadir Demir Wakeup Call by Ran Raiten Anthill by Kadir Demir Synesthesia by Michael FK A New Horizon by Cloud Wave Selfless by Eleven Tales Reel by Anbr

Why it's here

7 people recommend this

What people say. Highly recommended for its beautiful visualizations and inspiring demonstration of compute shaders for simulation.

ehsankiaon Hacker News • Recommends

On “Time flies in Google Earth’s biggest update in years”

Speaking of ant and slime simulation, this recent video Coding Adventures video was pretty mind blowing: link to this video (Especially part 2 starting around 10m in).

Udoon Hacker News • Recommends

On “Ze Frank True Facts: The Smartest Slime”

Sebastian Lague made an excellent video "Ant and Slime Simulations" which explores how path-finding algorithms can use trails and gradient-based signaling to solve spatial problems: link to this video

Risordon Hacker News • Recommends

On “The secret inside One Million Checkboxes”

At the time I was lost joy of coding too but I was able to found it again. One key point was to ignore learning new tech if it was not absolutely necessary and focus just creating new things. I think it all started from Sebastian Lague's video which reminded how beautiful coding can be. [video ]

theossuaryon Hacker News • Recommends

On “Show HN: Play with Shaders Inspired by Slime Mold”

This reminds me of a coding adventure YT video that replicates slime molds in Unity, look at the end to see some high res videos of it - link to this video

Berg0X00on Hacker News • Recommends

On “Compute Shader 101 [video]”

Thanks for sharing this! I have not watched the full video yet but definitely will. Recently got interested in compute shaders thanks to this video: link to this video and can recommend it to those that want to see a bit of what is possible with compute shaders.

Neztebon Hacker News • Recommends

On “Orb Farm”

I love ants and replicating their behavior in code! You might like these projects: "Coding Adventure: Ant and Slime Simulations" by Sebastian Lague: Video: link to this video Code link "C++ Ants Simulation 1, First approach" by Pezzza's Work: Video: link Code: link

u/i1a2in r/compsci • Recommends

Coding Adventure: Ant and Slime Simulations

u/SirLichin r/compsci • Mentions

On “Are there any other ideas/simulations in theoretical CS that have had the same impact as Conway’s Game of Life?”

I assume you are talking about *cultural* impact. You got some good answers here, such as Boids algorithm, Mandlebrot set, Fractals in general. I think these are the real winners in terms of cultural impact, but here are some more stuff you might be interested in: - Ant simulations - Slime mold simulations - The general concept of higher-dimension continuous cellular automata As an aside: GOL isn't actually that impactful, compared to stuff like cryptography, GANs, or really anything applied. It's a fascinating and culturally significant thing, but it's not like the crowning achievement of even Conway himself.