Complex Behaviour from Simple Rules: 3 Simulations

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • 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 TH-cam 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.1K

  • @simivb
    @simivb 3 ปีที่แล้ว +1657

    I'm just glad you exist. This is nice.

    • @wistlov9248
      @wistlov9248 3 ปีที่แล้ว +11

      I wholeheartedly agree!

    • @diegopalo4073
      @diegopalo4073 3 ปีที่แล้ว +2

      Same 💪🏻💪🏻

    • @flashplays6489
      @flashplays6489 3 ปีที่แล้ว +4

      Wait 12 hours ago for me it shows the video released 12 mins ago

    • @rikittu
      @rikittu 3 ปีที่แล้ว +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 ปีที่แล้ว +1

      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

  • @SebastianLague
    @SebastianLague  3 ปีที่แล้ว +1718

    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 TH-cam over here: twitter.com/slackermanz th-cam.com/channels/moNsNuM0M9VsIXfm2cHPiA.htmlvideos

    • @dadutchboy2
      @dadutchboy2 3 ปีที่แล้ว +12

      those arent simple rules, they are actually quite complex
      you can tweak them in very many ways too

    • @rohanasokan7338
      @rohanasokan7338 3 ปีที่แล้ว +11

      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 ปีที่แล้ว +1

      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 ปีที่แล้ว +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 ปีที่แล้ว +2

      @@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.

  • @alexanderlinderson2655
    @alexanderlinderson2655 3 ปีที่แล้ว +2682

    Suddenly these particle systems start questioning their existance and whether they're alone in the unityverse.

    • @DrunkGeko
      @DrunkGeko 3 ปีที่แล้ว +160

      And simulating other smaller scale particle systems

    • @nathankamenchu1239
      @nathankamenchu1239 3 ปีที่แล้ว +51

      @@DrunkGeko turtles all the way down

    • @jakehix8132
      @jakehix8132 3 ปีที่แล้ว +72

      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 ปีที่แล้ว +29

      when one of those creatures suddenly "died" after pulsing for so long it made me sad

    • @unitysparticlesystem
      @unitysparticlesystem 3 ปีที่แล้ว +7

      I have no idea what is happening...

  • @capsey_
    @capsey_ 3 ปีที่แล้ว +618

    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 ปีที่แล้ว +50

      It is the other way around. Organic shapes that arose in the natural world comes from these simple rules.

    • @BrewalRenault
      @BrewalRenault 3 ปีที่แล้ว +16

      It's quite related to the principle of emergence. You should take a look at this Kurzgesagt video if you haven't done yet : th-cam.com/video/16W7c0mb-rE/w-d-xo.html

    • @aceman0000099
      @aceman0000099 3 ปีที่แล้ว +7

      It goes to show, life isn't as complex/mysterious as you may think

    • @SolarShado
      @SolarShado 3 ปีที่แล้ว +25

      @@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 ปีที่แล้ว +1

      @@BrewalRenault Ah, i see you are a man of culture as well

  • @lonebeaver9535
    @lonebeaver9535 3 ปีที่แล้ว +283

    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 ปีที่แล้ว +32

      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 ปีที่แล้ว +2

      Username checks out

  • @cheimy2347
    @cheimy2347 3 ปีที่แล้ว +79

    At 4:50 I see nice little happy particles traveling alone and than finding their friends and dancing together

    • @taureon_
      @taureon_ 3 ปีที่แล้ว +17

      and then one of them suddenly dies

    • @cheimy2347
      @cheimy2347 3 ปีที่แล้ว +9

      @@taureon_ yes. He sacrifices himself or is eaten... Up to you

    • @101m4n
      @101m4n 3 ปีที่แล้ว +6

      And only occasionally eating eachother

    • @thomb.9013
      @thomb.9013 3 ปีที่แล้ว

      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 ปีที่แล้ว +1

      Me too! They also almost look like they have two hands holding each other’s.

  • @lorenz.f
    @lorenz.f 3 ปีที่แล้ว +463

    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 ปีที่แล้ว +4

      My question is where the movement (life) came from?

    • @kajetanradulski9267
      @kajetanradulski9267 3 ปีที่แล้ว +36

      @@billowen3285 thermal energy

    • @borisengler8892
      @borisengler8892 3 ปีที่แล้ว +46

      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 ปีที่แล้ว +41

      @@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 ปีที่แล้ว +1

      I don't know, understanding gravity makes my brain hurt

  • @anonymouscommentator
    @anonymouscommentator 3 ปีที่แล้ว +131

    Holy moly and the music gives exactly the right atmosphere back. You truly feel like you are gazing at something special.

    • @terry2295
      @terry2295 3 ปีที่แล้ว +2

      totally agree

    • @_Wombat
      @_Wombat 3 ปีที่แล้ว +2

      funnily enough I wasn't feeling the music. I muted and put my own on for a change :) each to their own

  • @Crozz22
    @Crozz22 3 ปีที่แล้ว +472

    Almost getting the feeling that one of these simulation would suddenly become life

    • @MinerBat
      @MinerBat 3 ปีที่แล้ว +28

      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 ปีที่แล้ว +3

      Hey

    • @fizipcfx
      @fizipcfx 3 ปีที่แล้ว +6

      @@MinerBat yeah like, the famous game of life takes its name from that theory.

    • @samuelthecamel
      @samuelthecamel 3 ปีที่แล้ว +5

      Now I understand why people think we're living in a simulation

    • @aceman0000099
      @aceman0000099 3 ปีที่แล้ว +10

      @@samuelthecamel why would it matter though, if the "simulation" is identical to nature?

  • @okyeahbutwhythoe1804
    @okyeahbutwhythoe1804 3 ปีที่แล้ว +443

    I’m calling it, in 4 years you’re gonna make a “I Simulated All Of Reality” video

    • @AbdullaJaberAL-Khafaji
      @AbdullaJaberAL-Khafaji 3 ปีที่แล้ว +14

      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 ปีที่แล้ว +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 ปีที่แล้ว +1

      @@AbdullaJaberAL-Khafaji I highly doubt that

    • @pascha4527
      @pascha4527 3 ปีที่แล้ว +2

      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 ปีที่แล้ว +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.

  • @BrodieEaton
    @BrodieEaton 3 ปีที่แล้ว +35

    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 ปีที่แล้ว +26

    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 ปีที่แล้ว +56

    I don’t care that my mobile is in 3% battery. I can’t stop watching it. It’s satisfying .

    • @theepicgamer1196
      @theepicgamer1196 3 ปีที่แล้ว +2

      Big brain moment: watch the video AND charge your phone. Mind-blowing.

  • @PaprikaYT
    @PaprikaYT 3 ปีที่แล้ว +107

    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

  • @dottormaelstrom
    @dottormaelstrom 3 ปีที่แล้ว +40

    This looks like a video that's gonna end up in everyone's recommended 10 years from now

  • @bronsoncarder2491
    @bronsoncarder2491 3 ปีที่แล้ว +16

    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

  • @nmbileg
    @nmbileg 3 ปีที่แล้ว +12

    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 ปีที่แล้ว +16

    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.

  • @Kamzik123
    @Kamzik123 3 ปีที่แล้ว +14

    Sebastian: *makes simulation video*
    TH-cam compression: *starts sweating profusely*

  • @YMandarin
    @YMandarin 3 ปีที่แล้ว +11

    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 ปีที่แล้ว +2

      Part of it is that these sort of emulate nature.

    • @orionsyndrome
      @orionsyndrome 3 ปีที่แล้ว +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.

  • @PandemoniumGameDev
    @PandemoniumGameDev 3 ปีที่แล้ว +11

    This man started out by making games and now he's creating new life forms 😁 Amazing!

  • @TheBibitesDigitalLife
    @TheBibitesDigitalLife 3 ปีที่แล้ว +18

    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 ปีที่แล้ว +4

      Thanks! :)

    • @pinkajou656
      @pinkajou656 2 ปีที่แล้ว

      @@SebastianLague this video is amazing!

  • @adamprice4658
    @adamprice4658 3 ปีที่แล้ว +4

    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.

  • @gareths
    @gareths 3 ปีที่แล้ว +6

    It's amazing how you incorporate music that perfectly encapsulates what I feel when I watch any of the simulations you make

  • @MichaelJOneill333
    @MichaelJOneill333 3 ปีที่แล้ว +4

    8:30 absolutely amazing. You have a gift in programming and understanding of the fundamentals of biology. Thank you so much for this.

  • @themihanoid5020
    @themihanoid5020 3 ปีที่แล้ว +8

    Videos like this make me think that life might actually not be that uncommon

  • @GoTeamScotch
    @GoTeamScotch 3 ปีที่แล้ว +7

    This was wayyy more interesting than I was expecting

  • @confusioned2249
    @confusioned2249 3 ปีที่แล้ว +4

    I swear this is the exact type of video youtube recommends you at 3 am

  • @xxTshestoxx
    @xxTshestoxx 3 ปีที่แล้ว +9

    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!

  • @SomethingExtra
    @SomethingExtra 3 ปีที่แล้ว +30

    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 ปีที่แล้ว +1

      BIRD MAN

  • @flymacseamus3474
    @flymacseamus3474 ปีที่แล้ว +1

    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

  • @Gwilo
    @Gwilo 3 ปีที่แล้ว +33

    comments: from 12 hours ago
    video: from 20 minutes ago
    everyone: time travellers

    • @epicfilms4life507
      @epicfilms4life507 3 ปีที่แล้ว +2

      everyone: patreon supporters

    • @franzusgutlus54
      @franzusgutlus54 3 ปีที่แล้ว +1

      Ergo: patreon = time Machine
      Got it...

    • @Gwilo
      @Gwilo 3 ปีที่แล้ว +1

      @@epicfilms4life507 god damnit I'm getting my wallet

  • @JC-jz6rx
    @JC-jz6rx 2 ปีที่แล้ว +4

    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!

  • @kelvindecosta5350
    @kelvindecosta5350 3 ปีที่แล้ว +20

    This is really missing his voice but it's still a fantastic watch

  • @AgsmaJustAgsma
    @AgsmaJustAgsma 3 ปีที่แล้ว +1

    I stated in a Discord group that Sebastian is a quantum physics Unity tutor, and I'm glad that my statement holds true with each new video.

  • @mauritspuggaard4689
    @mauritspuggaard4689 3 ปีที่แล้ว +1

    You deserve so a lot more subscribers! I’m finding myself watching your videos multiple times. Great work as always!

  • @ooffoo5130
    @ooffoo5130 3 ปีที่แล้ว +4

    you are the only youtuber who gets me genuinely excited when you post videos

  • @nikoskonstantinou3681
    @nikoskonstantinou3681 3 ปีที่แล้ว +4

    This is AMAZING. I could watch these simulations all day! Next step is making a screensaver out of this 😅

  • @oiacopas
    @oiacopas 3 ปีที่แล้ว +1

    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!

  • @claudiusgruner92
    @claudiusgruner92 3 ปีที่แล้ว +2

    1:31 you made a liver!! Amazing video as always.

  • @roquendroll
    @roquendroll 3 ปีที่แล้ว +3

    Slime Mould Patterns: *organically turns into hexagons*
    Me: "The hexagon is the bestagon" - CGP Grey

  • @TriDeapthBear
    @TriDeapthBear 3 ปีที่แล้ว +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

  • @KalleBlixtHagholm
    @KalleBlixtHagholm 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    Outstanding how the music and art were matched at every moment to fit together. Admirable attention to detail!

  • @PauloHenrique-em2ly
    @PauloHenrique-em2ly 3 ปีที่แล้ว +4

    This is one of the most beautiful things i have ever seen. This is art!

  • @kathenae
    @kathenae 3 ปีที่แล้ว +17

    "So, which one was your favorite?"
    me: YES

  • @commodoreNZ
    @commodoreNZ 3 ปีที่แล้ว +1

    Mesmerizing and beautifully edited. I'm happy this is in my head now. Thank you and more please :)

  • @TheSlowGrowth
    @TheSlowGrowth 3 ปีที่แล้ว +2

    Oh, these should be available as screensavers! So beautiful!

  • @lexsec
    @lexsec 3 ปีที่แล้ว +6

    My favorite programmer has uploaded again! :D -kale

  • @KentHambrock
    @KentHambrock 3 ปีที่แล้ว +37

    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 ปีที่แล้ว +6

      @@viiizzaalishvili9967 i guess Patreon supporters have early access

    • @midgetmackenzie
      @midgetmackenzie 3 ปีที่แล้ว +8

      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 ปีที่แล้ว +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 ปีที่แล้ว +1

      @@petersmythe6462 the idea sounds really fun ngl

  • @constance8254
    @constance8254 3 ปีที่แล้ว +1

    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 !

  • @MinEntropy
    @MinEntropy 3 ปีที่แล้ว +6

    Excited for a new video!

  • @devsauce
    @devsauce 3 ปีที่แล้ว +4

    These are so cool 🔥

  • @eggpoison5182
    @eggpoison5182 3 ปีที่แล้ว +2

    Your videos are so high quality! Great work!

  • @danielsantos3254
    @danielsantos3254 3 ปีที่แล้ว +2

    Wow. This is amazing. I wonder what a 3D simulation of these rules would look like.

    • @WispNL
      @WispNL 3 ปีที่แล้ว

      Just take a look outside 😉

    • @danielsantos3254
      @danielsantos3254 3 ปีที่แล้ว

      Haha, well... The emergent complexity of reality is a little too much to appreciate all at once. Compared to that, the beauty of a much simpler set of rules is a lot easier to digest.

  • @filipsperl
    @filipsperl 3 ปีที่แล้ว +15

    this really makes me think about life being an emergent property magnified by natural selection

    • @o.s.2056
      @o.s.2056 3 ปีที่แล้ว +1

      Well... Yeah, cuz it is.

  • @likun54
    @likun54 3 ปีที่แล้ว +9

    hey this looks so good....will you be making a tutorial on same ? A request. No pressure.

    • @SebastianLague
      @SebastianLague  3 ปีที่แล้ว +5

      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

  • @DanimoDev
    @DanimoDev 3 ปีที่แล้ว

    Man, this video is gorgeous! Nice work Sebastian!

  • @diegolondrina7510
    @diegolondrina7510 3 ปีที่แล้ว +1

    Inspiring as always Sebastian. Amazing.

  • @tsumurireallll
    @tsumurireallll 3 ปีที่แล้ว +4

    2:07
    zaaaankoooku...
    I can't be the only one

  • @briangallagher3619
    @briangallagher3619 3 ปีที่แล้ว +6

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +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.

  • @matheusmoreira9632
    @matheusmoreira9632 3 ปีที่แล้ว

    That pleasure of seeing Sebastian Lague videos! Amazing as always!

  • @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.

  • @SmellyNutz
    @SmellyNutz 3 ปีที่แล้ว +7

    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 ปีที่แล้ว +8

    My girlfriend is kind of the opposite: complex rules for very simple daily task

  • @outercloud
    @outercloud 3 ปีที่แล้ว

    Absolutely incredible and cinematic! I love it! Keep up the good work!

  • @kevinocta9716
    @kevinocta9716 3 ปีที่แล้ว +1

    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!

  • @alex-greeck
    @alex-greeck 3 ปีที่แล้ว +4

    I'm sure that when nature created this world, her first attempts somehow looked like this

  • @notanengineer
    @notanengineer 3 ปีที่แล้ว +3

    Never clicked so fast 😂

  • @christiangassner1231
    @christiangassner1231 3 ปีที่แล้ว

    This is beatiful! Amazing work!

  • @sdoregor
    @sdoregor 3 ปีที่แล้ว

    Your work is so impressive. Love it!

  • @kierand8167
    @kierand8167 3 ปีที่แล้ว

    This is stunning, very much enjoyed!

  • @vidstige
    @vidstige 3 ปีที่แล้ว

    This is insane, love it! Excellent choice of music as well.

  • @nielsbishere
    @nielsbishere 3 ปีที่แล้ว

    Always interesting to see what topics you cover next

  • @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

  • @schwons3703
    @schwons3703 3 ปีที่แล้ว

    Truly amazing! Keep up the good work!

  • @betterlifeexe4378
    @betterlifeexe4378 2 ปีที่แล้ว +2

    Isn't it amazing that if you establish a few mathematical transformations and allow it to iterate you can end up with something so much like both life and our universe as a whole. I love the ideas behind cellular automata and the colors of infinity, very insightful.

  • @seanloughran6714
    @seanloughran6714 3 ปีที่แล้ว

    Absolutely stunning. Love your work! It also is absolutely amazing on my OLED TV!

  • @Vantivify
    @Vantivify 2 ปีที่แล้ว

    This was a pleasure to watch

  • @LostLargeCats
    @LostLargeCats 3 ปีที่แล้ว

    This is amazing. Great work!

  • @flwi
    @flwi 3 ปีที่แล้ว

    Beautiful and mesmerizing!

  • @badgoogler8281
    @badgoogler8281 3 ปีที่แล้ว +1

    That’s some serious documentary music right there.

  • @zaidlacksalastname4905
    @zaidlacksalastname4905 ปีที่แล้ว

    The usage of incredibly intense music makes these videos way better.

  • @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.

  • @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.

  • @Spar3Tim3r
    @Spar3Tim3r 3 ปีที่แล้ว

    I get so excited when I see that you've posted. FEED MY BRAIN

  • @Madbird95
    @Madbird95 3 ปีที่แล้ว

    Thanks for sharing! I love that slime mold simulation.

  • @elliot6758
    @elliot6758 3 ปีที่แล้ว

    thank you for sharing these fascinating works

  • @Stonium
    @Stonium 3 ปีที่แล้ว

    You actually took the time to sync the music with the video. Much appreciated - thank you!

  • @marthinus.x
    @marthinus.x 3 ปีที่แล้ว

    Absolutely amazing, thank you so much for sharing these!

  • @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 :)

  • @fernandolener1106
    @fernandolener1106 3 ปีที่แล้ว

    This is one of those videos that I will come back to watch over the years

  • @kseniia7494
    @kseniia7494 3 ปีที่แล้ว

    The best video I've ever seen!❤️
    Perfect music, Perfect dimulation. Incredibly accurately it conveys all the beauty❤️

  • @babelchips
    @babelchips 3 ปีที่แล้ว +2

    Thank you for making this

  • @Gorgious
    @Gorgious 3 ปีที่แล้ว

    That was quite the journey... Thanks for sharing !

  • @user-qu2oz2ut2h
    @user-qu2oz2ut2h 3 ปีที่แล้ว

    Beautiful and explained. Nice.

  • @arthurcheek5634
    @arthurcheek5634 2 ปีที่แล้ว

    its amazing how organic these are, Amazing stuff!

  • @elijahbuchanan2368
    @elijahbuchanan2368 3 ปีที่แล้ว

    Thank you for existing, this is inspiring

  • @christiantoft
    @christiantoft 3 ปีที่แล้ว

    Absolutely awesome and inspiring! Thanks for sharing 🙏

  • @PunmasterSTP
    @PunmasterSTP 2 ปีที่แล้ว

    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...