Complex Behaviour from Simple Rules: 3 Simulations

  Переглядів 371,135

Sebastian Lague

Sebastian Lague

День тому

A small display of some of the surprisingly intricate patterns and behaviours that can arise from relatively simple rules. More information about each of the simulations below.
These simulations were made in Unity, and coded with C# and HLSL.
You can find the project files at the links below.
Reaction-Diffusion: github.com/SebLague/Reaction-...
Cellular Automata: github.com/SebLague/MN-Cellul...
Slime mould: github.com/SebLague/Slime-Sim...
If you'd like to support my work, you can do so on Patreon: / sebastianlague
--- 1. Reaction-Diffusion ---
This is a simulation of two chemicals (A and B). Both diffuse over time (A faster than B).
The simulation space is initially filled with A, and just a small region has some of chemical B. Over time, more A is gradually added (controlled by a parameter called feedRate), while B is gradually removed (controlled by the parameter removeRate). Finally, there's a reaction that takes place: when one particle of chemical A is in the presence of two particles of chemical B, it will be converted into B.
One could simulate the individual particles of both chemicals, but more common (and the approach I went with as well) is to just store a value for the concentrations of both chemicals at each pixel. The probability of an A particle coming into contact with two B particles can be determined by the equation: probablityOfReaction = concentrationA * concentrationB * concentrationB. Here is the tutorial I followed when creating my implementation: www.karlsims.com/rd.html
The colours in the simulation are mainly based on the concentrations of the two chemicals, but to spice things up I also added some colouring based on how fast the concentrations are changing at each point.
--- 2. Multiple Neighbourhood Cellular Automata ---
This is a technique developed by someone who goes by Slackermanz online (you can find many awesome examples under that name on Twitter).
In this simulation, the state of each pixel (called a cell) is initially randomized between 0 and 1. On every frame, the state of each cell is updated based on the states of all the cells inside various "neighbourhoods" around it. These neighboughhoods are ring-shaped, with each ring defined by a min and max radius, along with two min/max values called 'alive' and 'dead'. Once all the states inside a ring have been added up, the sum is compared to the ring's alive and dead ranges, and depending on which range the sum falls into, the cell's state increases or decreases by some small amount (if the sum is inside neither range, the state remains the same).
This already gives interesting results, but there are some more nuances that can be added. For example, instead of the rings directly affecting the cell's state, they can contribute to several 'potential' states, and whichever of these is most different from the cell's current state becomes the new state.
My implementation is based on Slackermanz code, which you can find here: github.com/Slackermanz/Vulkan...
Slackermanz also has a UKposts channel here: / @slackermanz
--- 3. Slime Mould Simulation ---
In this simulation we have a lot lot of particles, each of which leaves a trail behind itself as it moves. These trails diffuse and evaporate over time. Each particle also has three circular sensors arranged in an arc in front it. These are used to detect the intensity of the trail, and the particle turns towards whichever detects the highest intensity. Some randomness is added to the turning as well.
The idea for this comes from this paper: uwe-repository.worktribe.com/...
I also have a video exploring it in some more depth: • Coding Adventure: Ant ...
Music:
Beneath the Stars by Joshua Spacht
Nowhere I Can Go by The Stolen Orchestra
The Art of Loneliness by Anbr
Selfless by Eleven Tales
Life by Anbr
Chapters:
00:00 Reaction-Diffusion Simulation
02:50 Multi-Neighbourhood Cellular Automata
07:23 Slime Mould Simulation

КОМЕНТАРІ: 1 100
@simivb
@simivb 3 роки тому
I'm just glad you exist. This is nice.
@wistlov9248
@wistlov9248 3 роки тому
I wholeheartedly agree!
@diegopalo4073
@diegopalo4073 3 роки тому
Same 💪🏻💪🏻
@flashplays6489
@flashplays6489 3 роки тому
Wait 12 hours ago for me it shows the video released 12 mins ago
@rikittu
@rikittu 3 роки тому
@@flashplays6489 he probably release videos a day earlier for his patreon supporters. The video is unlisted till the time of the publix upload.
@terry2295
@terry2295 3 роки тому
I edit the comment because I asked the same question as Flash Wally above me and Ritik Tandon already answered it so no need for my comment
@alexanderlinderson2655
@alexanderlinderson2655 3 роки тому
Suddenly these particle systems start questioning their existance and whether they're alone in the unityverse.
@DrunkGeko
@DrunkGeko 3 роки тому
And simulating other smaller scale particle systems
@nathankamenchu1239
@nathankamenchu1239 3 роки тому
@@DrunkGeko turtles all the way down
@jakehix8132
@jakehix8132 3 роки тому
Some say, if you zoom in close enough on the particle system making particles, you can hear them taking Sebastian's name in vain.
@taureon_
@taureon_ 3 роки тому
when one of those creatures suddenly "died" after pulsing for so long it made me sad
@unitysparticlesystem
@unitysparticlesystem 3 роки тому
I have no idea what is happening...
@capsey_
@capsey_ 3 роки тому
This is incredible how these simple rules make so organic-looking shapes, if someone would say that this is a new video from microscope I would fall for that
@arielgenesis
@arielgenesis 3 роки тому
It is the other way around. Organic shapes that arose in the natural world comes from these simple rules.
@BrewalRenault
@BrewalRenault 3 роки тому
It's quite related to the principle of emergence. You should take a look at this Kurzgesagt video if you haven't done yet : ukposts.info/have/v-deo/aWaIa5lnpJhe03k.html
@aceman0000099
@aceman0000099 3 роки тому
It goes to show, life isn't as complex/mysterious as you may think
@SolarShado
@SolarShado 3 роки тому
@@aceman0000099 It kinda is, and kinda isn't. IMO this (sort of thing) is a great example of how complex structures can emerge from even simple rules, and why it's unreasonable to *not* imagine the even more complexity could emerge from more complex systems. If you can get all this from only 2-3 "particles" with a 1-2 "forces", scale it up to what we have in reality and... >gestures vaguely in every direction
@stickguy9109
@stickguy9109 3 роки тому
@@BrewalRenault Ah, i see you are a man of culture as well
@SebastianLague
@SebastianLague 3 роки тому
Hey everyone, I know this one's a bit light on explanation -- I've just been having a lot of fun messing around with various simulations and wanted to share some of the results. Might do a more in-depth video on these techniques at one point if there is interest (for now though, the description has more detail and some links if you're curious). Hope you enjoy the video! The second simulation is based on the work of Slackermanz, if you'd like to see many more awesome examples of what can be done with this technique, make sure to check out Slackermanz' Twitter and UKposts over here: twitter.com/slackermanz ukposts.info/the/moNsNuM0M9VsIXfm2cHPiA.htmlvideos
@dadutchboy2
@dadutchboy2 3 роки тому
those arent simple rules, they are actually quite complex you can tweak them in very many ways too
@rohanasokan7338
@rohanasokan7338 3 роки тому
Been loving your videos. It would be great if you start a tutorial on how you make these videos - they look so smooth and honestly the best I have seen on youtube. Cheers!
@franciscomagalhaes7457
@franciscomagalhaes7457 3 роки тому
I don't suppose anything like this can be at least emulated using webgl, for a browser experience, right? I've been trying to research how I would make cellular automata solely using webgl, but feel like I might have to hack together something suboptimal, since resources on the subject seem to be few and far between...
@TheKennethConner
@TheKennethConner 3 роки тому
It is so amazing how you are tweaking them and changing the rules mid-simulation! It's like a fireworks show! I love it!
@JuanPablodelaTorre
@JuanPablodelaTorre 3 роки тому
@@franciscomagalhaes7457 I'm sure it is possible to translate these to Javascript and WebGL. But you'd be better off using regular 2D canvas instead.
@lonebeaver9535
@lonebeaver9535 3 роки тому
Me: Barely gets a finite state machine to decide between eating and fleeing from enemies Sebastian Lague: Creates the building blocks of life all on his GPU
@YTRingoster
@YTRingoster 3 роки тому
i mean, if you ran a million of your FSMs on the GPU and gave them pretty neon colors, it'd still look pretty cool
@connorconnor1631
@connorconnor1631 2 роки тому
Username checks out
@cheimy2347
@cheimy2347 3 роки тому
At 4:50 I see nice little happy particles traveling alone and than finding their friends and dancing together
@taureon_
@taureon_ 3 роки тому
and then one of them suddenly dies
@cheimy2347
@cheimy2347 3 роки тому
@@taureon_ yes. He sacrifices himself or is eaten... Up to you
@101m4n
@101m4n 3 роки тому
And only occasionally eating eachother
@thomb.9013
@thomb.9013 2 роки тому
me too! i also thinks its nice for like a unstable essence if you take one that is like alone and still.
@pinkajou656
@pinkajou656 2 роки тому
Me too! They also almost look like they have two hands holding each other’s.
@anonymouscommentator
@anonymouscommentator 3 роки тому
Holy moly and the music gives exactly the right atmosphere back. You truly feel like you are gazing at something special.
@terry2295
@terry2295 3 роки тому
totally agree
@_Wombat
@_Wombat 3 роки тому
funnily enough I wasn't feeling the music. I muted and put my own on for a change :) each to their own
@lorenz.f
@lorenz.f 3 роки тому
It's incredible how lifelike those behaviours are. While this of course has much simpler starting conditions and rules then our world, it makes it much easier to imagine our universe just randomly formed from noise interacting with itself.
@billowen3285
@billowen3285 3 роки тому
My question is where the movement (life) came from?
@kajetanradulski9267
@kajetanradulski9267 3 роки тому
@@billowen3285 thermal energy
@borisengler8892
@borisengler8892 3 роки тому
What if there are just few simple rules of our universe that make up other rules we observe as complexity rises? Just an idea.
@antoninjacob2232
@antoninjacob2232 3 роки тому
@@borisengler8892 it's basically it. The universe was just pure energy at the "beginning" (even if it doesn't make sense to even conceptualize a beginning, which implies time that is relative). You couldn't have simpler conditions, and everything emerged from there. But the universe's laws are... Universal, all across itself, and very simple
@billowen3285
@billowen3285 3 роки тому
I don't know, understanding gravity makes my brain hurt
@Crozz22
@Crozz22 3 роки тому
Almost getting the feeling that one of these simulation would suddenly become life
@MinerBat
@MinerBat 3 роки тому
actually, theoretically that would be possible if the simulation size and time are many, many, MANY times larger. but even the strongest supercomputers don't get close to that calculation power.
@canaDavid1
@canaDavid1 3 роки тому
Hey
@fizipcfx
@fizipcfx 3 роки тому
@@MinerBat yeah like, the famous game of life takes its name from that theory.
@samuelthecamel
@samuelthecamel 3 роки тому
Now I understand why people think we're living in a simulation
@aceman0000099
@aceman0000099 3 роки тому
@@samuelthecamel why would it matter though, if the "simulation" is identical to nature?
@BrodieEaton
@BrodieEaton 3 роки тому
That second simulation looks like I'm watching micro-organisms through a microscope, and that "Thanks for watching" slide is by far the coolest end to a video I've ever seen
@TebiByyte
@TebiByyte 3 роки тому
I'm a simple man. I see a new Sebastian Lague video, I watch. But seriously this is so cool. It's like watching microbes under a microscope.
@CodeBeetle
@CodeBeetle 3 роки тому
I don’t care that my mobile is in 3% battery. I can’t stop watching it. It’s satisfying .
@theepicgamer1196
@theepicgamer1196 3 роки тому
Big brain moment: watch the video AND charge your phone. Mind-blowing.
@okyeahbutwhythoe1804
@okyeahbutwhythoe1804 3 роки тому
I’m calling it, in 4 years you’re gonna make a “I Simulated All Of Reality” video
@AbdullaJaberAL-Khafaji
@AbdullaJaberAL-Khafaji 3 роки тому
If the right computational power exists this will be easier than you think , just put the universe simplest rules in a simulator and there you have it , a reality simulation
@okyeahbutwhythoe1804
@okyeahbutwhythoe1804 3 роки тому
@@AbdullaJaberAL-Khafaji arguably you’d need all the rules, if you use Newton’s equation for gravity sooner or later it would look completely different from what should have happened and if you don’t use quarks stuff would not weigh nearly as much as it should
@bowiemtl
@bowiemtl 3 роки тому
@@AbdullaJaberAL-Khafaji I highly doubt that
@pascha4527
@pascha4527 3 роки тому
if you want to create a big simulation, you'll have to have the compute unit for one atom be less or as big as one atom.
@JohnSmithXL
@JohnSmithXL 3 роки тому
@@okyeahbutwhythoe1804 yeah, but if you think about it you could code in only quarks, leptons, and bosons along with simple rules on how the interact with everything and it should work just fine with the only worry being the cpu and ram needed to support such a simulation, do know that I'm not an expert in this stuff so I'll admit that there might be a problem with my statement.
@bronsoncarder2491
@bronsoncarder2491 3 роки тому
What I would love to see is a combination of all of these ideas. Take your planets that you've generated with their beautiful atmospheres, use your erosion function to make them look super realistic, add your amazing clouds, populate the oceans with fish using boids, create an ecosystem of rabbits and wolves and ants. Literally combine everything you've ever done on the channel. It would take days to render a frame, but I wanna see it. lol
@brotherbumkin3010
@brotherbumkin3010 2 роки тому
I think we are almost waiting for it
@dottormaelstrom
@dottormaelstrom 3 роки тому
This looks like a video that's gonna end up in everyone's recommended 10 years from now
@quearaeoquazhkn3728
@quearaeoquazhkn3728 3 роки тому
ye
@PaprikaYT
@PaprikaYT 3 роки тому
Its so goddamn mesmerizing. Honestly im glad you are here for us. You taught me to not always strive for a super awesome scalable system that never gets done but just write the goddamn code and then see if the performance is good enough. That made me a better Programmer. Thank you
@nmbileg
@nmbileg 3 роки тому
following this channel since 2017 and I'm telling you guys, this guy is a freaking GENIUS. I hope Sebastian become a leading entrepreneur in our software industry one day. - Proud Patreon.
@tecumstudio
@tecumstudio 3 роки тому
I knew you were good from the time I subscribed to your channel. But you've reached a level where the code at your fingertips can even now turn into art. Not to mention, it must be admitted, that some of these behaviors automatically make you think about life at different times or places or even at different scales. You are truly impressive, breathtaking.
@gareths
@gareths 3 роки тому
It's amazing how you incorporate music that perfectly encapsulates what I feel when I watch any of the simulations you make
@Kamzik123
@Kamzik123 3 роки тому
Sebastian: *makes simulation video* UKposts compression: *starts sweating profusely*
@YMandarin
@YMandarin 3 роки тому
these movements look so natural. When you try to make natural looking movement, it rarely looks good, but this looks really good
@petersmythe6462
@petersmythe6462 3 роки тому
Part of it is that these sort of emulate nature.
@orionsyndrome
@orionsyndrome 3 роки тому
and the other part is there is no movement, only continuous change of finite elements
@EctoMorpheus
@EctoMorpheus 3 роки тому
@@petersmythe6462 cellular automata really do not emulate nature, at least not on the scale of individual cells.
@xxTshestoxx
@xxTshestoxx 3 роки тому
This is genuinely one of the most fascinating, astonishing and relaxing videos i have seen in a long time. Thank you for listening to your viewers suggesting this kind of video!
@PandemoniumGameDev
@PandemoniumGameDev 3 роки тому
This man started out by making games and now he's creating new life forms 😁 Amazing!
@adamprice4658
@adamprice4658 3 роки тому
What a great way to start my day. Sitting here with a cup of coffee, watching art unfold in front of me and listening to some well-chosen music.
@MichaelJOneill333
@MichaelJOneill333 3 роки тому
8:30 absolutely amazing. You have a gift in programming and understanding of the fundamentals of biology. Thank you so much for this.
@TheBibitesDigitalLife
@TheBibitesDigitalLife 3 роки тому
Welcome to the world of artificial life 😁 Amazing video as always! I loved how you used shifting parameters mid-simulation to bring forth variation and shake things up
@SebastianLague
@SebastianLague 3 роки тому
Thanks! :)
@pinkajou656
@pinkajou656 2 роки тому
@@SebastianLague this video is amazing!
@flymacseamus3474
@flymacseamus3474 Рік тому
9:00 I love that even though this is 2-dimensional, it looks like this has depth... I don't just see a slime simulation here, this looks like the large-scale structures of the universe
@oiacopas
@oiacopas 3 роки тому
Great video, as always. I stumbled upon cellular automata and reaction-diffusion algorithms, when i started getting interested on programming and, since then, I've been under their spell. I can't quite put my feelings into words, but I get emotional when seeing complexity arise from such a simple set of rules. It's almost like I'm looking directly to a fundamental concept of reality itself. Glad to see you exploring this world once again!
@themihanoid5020
@themihanoid5020 3 роки тому
Videos like this make me think that life might actually not be that uncommon
@JC-jz6rx
@JC-jz6rx 2 роки тому
Your latest video blew up. So I’m writing this here in the hopes that you see it. Your channel is exploding recently , and it’s no wonder with all the effort that I can tell goes into the videos. They are great fun to watch! And as a developer , seeing how others approach problems is a great help. Thank you for reading, and thank you for making them Sebastian!
@KalleBlixtHagholm
@KalleBlixtHagholm 3 роки тому
Absolutely stunning! And the editing and timing the music makes it amazingly good. I want this as a screen saver to run on my TV.
@zgolkar
@zgolkar 3 роки тому
Outstanding how the music and art were matched at every moment to fit together. Admirable attention to detail!
@confusioned2249
@confusioned2249 3 роки тому
I swear this is the exact type of video youtube recommends you at 3 am
@ooffoo5130
@ooffoo5130 3 роки тому
you are the only youtuber who gets me genuinely excited when you post videos
@mauritspuggaard4689
@mauritspuggaard4689 3 роки тому
You deserve so a lot more subscribers! I’m finding myself watching your videos multiple times. Great work as always!
@constance8254
@constance8254 3 роки тому
WOW... just wow... At first I was disappointed not to hear you explain your code and the steps to get there because you usually explain in a very nice way (and your voice is very enjoyable haha) but I must say, I'm astonished. This is extremely wonderful, and the match with the music is just perfect. I didn't know a video of simulations could make me cry ! Thank you, and please never stop making videos, you're a genius !
@nikoskonstantinou3681
@nikoskonstantinou3681 3 роки тому
This is AMAZING. I could watch these simulations all day! Next step is making a screensaver out of this 😅
@GoTeamScotch
@GoTeamScotch 3 роки тому
This was wayyy more interesting than I was expecting
@commodoreNZ
@commodoreNZ 3 роки тому
Mesmerizing and beautifully edited. I'm happy this is in my head now. Thank you and more please :)
@PauloHenrique-em2ly
@PauloHenrique-em2ly 3 роки тому
This is one of the most beautiful things i have ever seen. This is art!
@SomethingExtra
@SomethingExtra 3 роки тому
oh yeah baby cant wait to get uncontrollably connected with these behaviors that i try to do them myself but fail horribly
@Gwilo
@Gwilo 3 роки тому
BIRD MAN
@matheusmoreira9632
@matheusmoreira9632 3 роки тому
That pleasure of seeing Sebastian Lague videos! Amazing as always!
@eggpoison5182
@eggpoison5182 3 роки тому
Your videos are so high quality! Great work!
@roquendroll
@roquendroll 3 роки тому
Slime Mould Patterns: *organically turns into hexagons* Me: "The hexagon is the bestagon" - CGP Grey
@kelvindecosta5350
@kelvindecosta5350 3 роки тому
This is really missing his voice but it's still a fantastic watch
@pseudofred_
@pseudofred_ 3 роки тому
Just some more ABSOLUTELY stunning visuals from Sebastian! Well worth the watch. Have been thinking of trying some of this out myself, looks like a deep rabbit hole of experimentation.
@PunmasterSTP
@PunmasterSTP Рік тому
I really have no words for how beautiful this is, and I'm very glad you made this video so that I could stumble across it today! On a side note, the part around 3:53 made me think of microtubules organizing inside of cells...
@TriDeapthBear
@TriDeapthBear 3 роки тому
I can tell you've lost yourself in creating these simulations, and rightfully so! They're all super incredible, especially considering the basic principles they're made from
@Gwilo
@Gwilo 3 роки тому
comments: from 12 hours ago video: from 20 minutes ago everyone: time travellers
@epicfilms4life507
@epicfilms4life507 3 роки тому
everyone: patreon supporters
@franzusgutlus54
@franzusgutlus54 3 роки тому
Ergo: patreon = time Machine Got it...
@Gwilo
@Gwilo 3 роки тому
@@epicfilms4life507 god damnit I'm getting my wallet
@DanimoDev
@DanimoDev 3 роки тому
Man, this video is gorgeous! Nice work Sebastian!
@diegolondrina7510
@diegolondrina7510 3 роки тому
Inspiring as always Sebastian. Amazing.
@lexsec
@lexsec 3 роки тому
My favorite programmer has uploaded again! :D -kale
@KentHambrock
@KentHambrock 3 роки тому
The simulations are all so pretty, I want to use them in a game, but I have no idea what it would be about or how it would work. xD
@viiizzaalishvili9967
@viiizzaalishvili9967 3 роки тому
how is your comment 12 hours ago if it was uploaded now
@capsey_
@capsey_ 3 роки тому
@@viiizzaalishvili9967 i guess Patreon supporters have early access
@midgetmackenzie
@midgetmackenzie 3 роки тому
What about giving the player control of slime parameters to solve problems like resource gathering or network building? In later levels there might be slimes that repel each other (9:57)
@petersmythe6462
@petersmythe6462 3 роки тому
An RTS based on the slime particles in an environment where resources are controlled by either reaction diffusion or multineighborehood automata. You can place down your own signal trails to guide the slime particles but beware, if an enemy detects your slime trails it will delete them and cause damage to any nearby slime particles of yours.
@terry2295
@terry2295 3 роки тому
@@petersmythe6462 the idea sounds really fun ngl
@Tondadrd
@Tondadrd 3 роки тому
Really great! I also like how the visuals and audio are linked. As if one without the other wouldn't make the complete picture. Reminds me of MelodySheep.
@outercloud
@outercloud 3 роки тому
Absolutely incredible and cinematic! I love it! Keep up the good work!
@kathenae
@kathenae 3 роки тому
"So, which one was your favorite?" me: YES
@henrymarkson3758
@henrymarkson3758 3 роки тому
Slime, hands down
@MinEntropy
@MinEntropy 3 роки тому
Excited for a new video!
@claudiusgruner92
@claudiusgruner92 3 роки тому
1:31 you made a liver!! Amazing video as always.
@seanloughran6714
@seanloughran6714 3 роки тому
Absolutely stunning. Love your work! It also is absolutely amazing on my OLED TV!
@devsauce
@devsauce 3 роки тому
These are so cool 🔥
@filipsperl
@filipsperl 3 роки тому
this really makes me think about life being an emergent property magnified by natural selection
@o.s.2056
@o.s.2056 3 роки тому
Well... Yeah, cuz it is.
@mattiasselin4955
@mattiasselin4955 3 роки тому
I don't know if you realise this, but this is art. Put these simulations up continously running on screens in a gallery and people will LOVE it
@kseniia7494
@kseniia7494 3 роки тому
The best video I've ever seen!❤️ Perfect music, Perfect dimulation. Incredibly accurately it conveys all the beauty❤️
@likun54
@likun54 3 роки тому
hey this looks so good....will you be making a tutorial on same ? A request. No pressure.
@SebastianLague
@SebastianLague 3 роки тому
Hey, happy you like it! I want to make a tutorial on the slime simulation, but one issue is that the shader code I wrote doesn't seem to run on some machines. I'd ideally like to figure out what's going on there first so I don't teach something wrong.
@inv41id
@inv41id 3 роки тому
@@SebastianLague oh yeah, some graphics card vendors don't perfectly follow specification in their OpenGL implementations so you need to be able to test on multiple machines to see that you don't accidentally end up writing vendor specific code. I've particularly had small issues with nVidia
@tsumurireallll
@tsumurireallll 3 роки тому
2:07 zaaaankoooku... I can't be the only one
@TheSlowGrowth
@TheSlowGrowth 3 роки тому
Oh, these should be available as screensavers! So beautiful!
@kevinocta9716
@kevinocta9716 2 роки тому
This is awesome. While I am blown away by how alive these simulations look but, in a way, I shouldn't be surprised. These are the same (similar-ish) simple rules that cells work/live by too. It should actually be expected that you can get such organic-like complexity with simple rules because; just look at planet earth! All life is built on a foundation of simple rules interacting in an increasingly complex way. Our brains just have a hard time merging the simplicity and complexity of systems like these. Love it!
@notanengineer
@notanengineer 3 роки тому
Never clicked so fast 😂
@briangallagher3619
@briangallagher3619 3 роки тому
So for the price of about 2 coffees a month you're just going to provide all the source code for this and all previous projects? I feel like I'm cheating. It would be interesting to tweak these to be deterministic, like make the random number generator pseudo-random and use a seed for a specific sequence, and an overall seed that includes all the variables. Then if you come across a cool one you could just share the seed number.
@Alzurana
@Alzurana 3 роки тому
Check out the video he linked where he goes into more depth about slime molds and ants. He's explaining the random number generator. It's actually just a simple hash function and if you base it on pixel coordinates it becomes deterministic. You can also just store the parameters in a simple base64 string if you so fancy and get a seed that way. The only problem I see is the execution order of thread groups on the compute shaders. I worked with slime mold myself after seeing his video and the reason why results don't perfectly match up between runs is because you can't control when which pixel will be written to. If you use a single texture to represent the field you'll get randomness introduced through that. That's usually not a big issue but if you want to make that deterministic too all you need to do is use double buffering for the texture that represents the "world" so to speak.
@SebastianLague
@SebastianLague 3 роки тому
Hey, the reaction-diffusion and cellular automata sims are already deterministic so I could definitely set something like that up if there's some interest in exploring and sharing results! As Alzurana said, the slime one is not deterministic currently, but should be fairly easy to make it so.
@Stonium
@Stonium 3 роки тому
You actually took the time to sync the music with the video. Much appreciated - thank you!
@Arrogan28
@Arrogan28 2 роки тому
I have written shaders for many years, film, games, etc, going back all the way to the 90's and i have to say, this is the most incredible procedural sims I have ever seen. Beautiful. Really stunning work.
@SmellyNutz
@SmellyNutz 3 роки тому
Ah yes; The man with the nice accent is back PS Sebastien; can you make some coding tuts as well? A request. But no pressure
@MattiaConti
@MattiaConti 3 роки тому
My girlfriend is kind of the opposite: complex rules for very simple daily task
@Vantivify
@Vantivify 2 роки тому
This was a pleasure to watch
@sdoregor
@sdoregor 2 роки тому
Your work is so impressive. Love it!
@alex-greeck
@alex-greeck 3 роки тому
I'm sure that when nature created this world, her first attempts somehow looked like this
@jonathanlorenz-indiedev
@jonathanlorenz-indiedev 3 роки тому
This channel went from coding experiment to just pure art. Thank you!
@belmintuzlic219
@belmintuzlic219 2 роки тому
Man it's not just incredible coding skills you have... Your other interests in life, your understanding of the world around you... Every video another story, you are such an inspiration to many people. I wish you everything best!
@christiangassner1231
@christiangassner1231 3 роки тому
This is beatiful! Amazing work!
@nielsbishere
@nielsbishere 3 роки тому
Always interesting to see what topics you cover next
@fileasphogg8320
@fileasphogg8320 2 роки тому
your work deserves more attention
@vidstige
@vidstige 3 роки тому
This is insane, love it! Excellent choice of music as well.
@kierand8167
@kierand8167 2 роки тому
This is stunning, very much enjoyed!
@pauldhankin
@pauldhankin 3 роки тому
Nice work combining the music with the visuals!
@schwons3703
@schwons3703 3 роки тому
Truly amazing! Keep up the good work!
@ravrath92
@ravrath92 3 роки тому
Man, I am trying right now to implement a Kinetic Monte Carlo algorithm for a complex system of many chemical reaction and your video shows up ahaha I am always so glad to be entertained by your work, amazing and inspiring as usual. It's so fascinating that morphogenesis produce its complicated patterns the way you have shown.
@alexu.9294
@alexu.9294 3 роки тому
Man, i love your vids. Every single time a new video shows up on your channel I'm getting exited... just to get my mind blown.
@arthurcheek5634
@arthurcheek5634 2 роки тому
its amazing how organic these are, Amazing stuff!
@JohnPaquette
@JohnPaquette 2 роки тому
You are clearly changing some simulation parameters at opportune points in the music, to very effective, um, effect. Nice job.
@LostLargeCats
@LostLargeCats 3 роки тому
This is amazing. Great work!
@anomalina7860
@anomalina7860 3 роки тому
I love this kinda stuff. Amazing, Sebastian. I have always thought people who disbelieve abiogenesis... who don't believe complex life can arise on its own from inert chemistry... have simply not done enough programming. Ooh, I just noticed the Patreon: Yes, sir, you got it!
@Spar3Tim3r
@Spar3Tim3r 3 роки тому
I get so excited when I see that you've posted. FEED MY BRAIN
@spencerstandish9095
@spencerstandish9095 3 роки тому
Don't want to lead down another rabbit hole but allot of these remind me of similar results created using video feedback. know there has been paper and research on the topic but have never seen those results replicated digitally. love your work
@Madbird95
@Madbird95 3 роки тому
Thanks for sharing! I love that slime mold simulation.
@ryanreed4698
@ryanreed4698 3 роки тому
Honestly one of the most beautiful things I've seen, and something that carries a lot when it comes to the philosophy of life, and how impossible simple rules could orchestrate such mesmerizing outcomes.
@tobihendrix1324
@tobihendrix1324 3 роки тому
Dude i were on your Channel literaly 10 Minutes before you uploaded this Video because i wanted to know if i missed something new. Glad that you noticed it and uploaded a new video :)
@marthinus.x
@marthinus.x 3 роки тому
Absolutely amazing, thank you so much for sharing these!
@heavencanceller1863
@heavencanceller1863 3 роки тому
You make me appreciate code on a whole other level
@HootyTooty
@HootyTooty 3 роки тому
Im not sure if it is beacause i am a computer science student, but this made a little tear roll down my cheek. A tear of joy and emotion. A truly beautiful work of art right there. Inspiring.
@hevidu4896
@hevidu4896 2 роки тому
your simulations and taste in music are sublime
Coding Adventure: Ant and Slime Simulations
17:54
Sebastian Lague
Переглядів 1,8 млн
epic conway's game of life
6:33
Rational Animations
Переглядів 5 млн
Genial gadget para almacenar y lavar lentes de Let's GLOW
00:26
Let's GLOW! Spanish
Переглядів 36 млн
Повістки у Києві: «Яке право вони мають забирати всіх мужиків?» #війна #мобілізація #військові
00:41
Слідство.Інфо | Розслідування, репортажі, викриття
Переглядів 579 тис.
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Переглядів 1,5 млн
I programmed some creatures. They Evolved.
56:10
davidrandallmiller
Переглядів 4 млн
Lenia - Artificial Life from Algorithms
13:15
Birdbrain
Переглядів 103 тис.
How Particle Life emerges from simplicity
10:16
Tom Mohr
Переглядів 292 тис.
Coding Adventure: Boids
8:35
Sebastian Lague
Переглядів 1,5 млн
Simulating an Evolving Microcosmos | The Path to Multicellularity
19:04
How This Pen Changed The World
9:17
Primal Space
Переглядів 135 тис.
Cellular Automata: Complexity From Simplicity
13:03
Acerola
Переглядів 89 тис.
Клеточные Автоматы на частицах
14:49
Onigiri
Переглядів 427 тис.
3D Cellular Automata
2:31
Softology
Переглядів 317 тис.