Asymmetrically interacting particles - Python version

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • Source code (python):
    github.com/ebo...
    The code for the version in this video is in the /old folder. Also check out the new C++ version that allows real-time rendering of more particles:
    • Asymmetrically interac...
    Inspired by this video by CodeParade
    • Particle Life - A Game...
    Also have a look here for more examples
    softologyblog....
    www.ventrella....

Komentáře • 167

  • @tciddados
    @tciddados Před 3 lety +792

    That one cluster needs to chill the heck out.

    • @insertgoodenoughnamehere6118
      @insertgoodenoughnamehere6118 Před 3 lety +40

      true he is literally devouring everyone

    • @soggos732
      @soggos732 Před 3 lety +27

      i think he had an overdose of every drug at once

    • @Bratjuuc
      @Bratjuuc Před 3 lety +20

      I believe that happens because of:
      conservation of momentum
      no friction
      non-existing Newton's third law

    • @Wyrmwould-Star
      @Wyrmwould-Star Před 3 lety +2

      i hate that i know the one youre talking about

    • @GrantKot
      @GrantKot Před 3 lety +1

      The One, he's moving like one of the agents.

  • @DrJoker1623
    @DrJoker1623 Před 3 lety +327

    I love how there's just this cell that has no purpose but to dance hardbass.

    • @miki890098
      @miki890098 Před 3 lety +31

      It has a purpose. Destroying everything to the sound of hardbass.

    • @nemesisurvivorleon
      @nemesisurvivorleon Před 2 lety +2

      lmao

    • @bigsmoke6414
      @bigsmoke6414 Před 2 lety +4

      its even funnier, considering how well made and thought through all the other cells look (ability to move/steer/etc.)

  • @nicnakpattywhack5784
    @nicnakpattywhack5784 Před 4 lety +136

    looks like heart beats. some them look like they're about to have a heart attack

  • @dutssz
    @dutssz Před 3 lety +37

    ignore the pulsating demon he won't hurt you (yet)

  • @PasseScience
    @PasseScience Před 3 lety +222

    Very cool! I think maybe you can add an asymptotique friction (to avoid build up of too much chaotique structures, slow down things that are moving too fast) and a negative friction to accelerate in the direction of their motion standing particles (promoting diffusions and encounter).

    • @sciencemathematics
      @sciencemathematics  Před 3 lety +75

      Awesome idea! As you can see in the video I had some trouble when particles get to close and you get this erratic wild behavior. It is reduced if you take shorter integration steps but I think your friction idea would do the trick. Thanks!

    • @PasseScience
      @PasseScience Před 3 lety +15

      @@sciencemathematics Yes friction is a quick and easy trick (In fact I am more curious about the effect of negative friction for low speed particles to avoid stagnation than positive friction for too quick). If you have trooble when they are too close maybe set up a minimal distance of interaction to avoid singularity if your force may be in 1/r etc... (maybe it's already done). I'll probably take the code of that this month to test various things to speed it up.

    • @sciencemathematics
      @sciencemathematics  Před 3 lety +14

      @@PasseScience I think the main reason I get this wild behavior is because I use a repulsion force to avoid overlapping particles. I think when the cluster of particles becomes large, there is a tug of war between the attracting force from the surrounding particles and the repulsive force from the nearest particles. I think this results in a change in the sign of the force at each timestep which produces these wild oscillations. Perhaps I place a limit on the magnitude of the allowed force to reduce this effect.

    • @Chillingworth
      @Chillingworth Před 3 lety +1

      @@sciencemathematics did you ever get around to trying out either of these two? I'm curious if the cells will actually start to respond to their environment after running the sim long enough in a stabler and larger environment

  • @raylo555
    @raylo555 Před 3 lety +66

    all the other cells minding their business and then there's the one listening to eurobeat and going crazy on the cellular dance floor

  • @jimyvanloock3510
    @jimyvanloock3510 Před 3 lety +70

    The incredible thing is that you can clearly see patterns, types of structures that are stable in a sense and then others that are erratic yet solid masses. The forces cause motion that appear organic in nature.
    This is a very nice simulation of how single-cellular life could look like.

  • @zom_tyt7382
    @zom_tyt7382 Před 3 lety +27

    The Snake like Cluster and The Pulsing one looks the most interesting.
    And when they collided at the end it looks as if they're alive.
    I love it

  • @o4_
    @o4_ Před 3 lety +18

    *The bouncy ball encompasses all*

  • @derangedberger
    @derangedberger Před 3 lety +5

    Hard to understate how impressive this is. Demonstrates well that a set of rules simple enough to write down on a few sheets of notebook paper can govern nonliving particles to create "life". I believe research involving programs of this kind will become instrumental in solving the origin of life.

    • @Lutestick
      @Lutestick Před 2 lety

      If you combine the RNA world idea with this I think you can get a great hypothesis on the origin of life. Our world is amazing!

  • @massimoesposito7014
    @massimoesposito7014 Před 3 lety +201

    Now is absolutely clear: our universe is a cellular automaton.

    • @bayusa8961
      @bayusa8961 Před 3 lety +5

      And that's only one half of our perception! 😀

    • @massimoesposito7014
      @massimoesposito7014 Před 3 lety +2

      @@spencersmith4305 It needs wide reflections about you commented here.

    • @nolan412
      @nolan412 Před 3 lety +5

      Stephen Wolfram says YES.

    • @Settiis
      @Settiis Před 3 lety +8

      rather cellular automation is a much simplified version of the fundamental mechanics of our universe, very interesting nontheless.

    • @treehousegames7903
      @treehousegames7903 Před 3 lety +1

      Obviously. I'm surprised it took you this long to figure out.

  • @molomono9481
    @molomono9481 Před 2 lety +5

    Thanks for leaving the axes in, very important for studying the behaviour of these particloids

  • @danibot3000
    @danibot3000 Před 2 lety +1

    The nervously spazzing cell cluster is like greed and the concept of unlimited growth which completely fucks up peace in it's enviroment

  • @boggers
    @boggers Před 2 lety +3

    This is by far the most visually impressive version of this idea published on youtube. Well done, you've really inspired me to make one myself.

  • @leethejailer9195
    @leethejailer9195 Před 3 lety +9

    It looks like they are evolving throughout generations

  • @samuelgibson780
    @samuelgibson780 Před 2 lety +4

    That's one of the most impressive takes on the "Game of Life" I've ever seen. Makes me think about cellular automata in a different way. I wasn't sure if this was pre-rendered until I peeked into the source code and realized it was a literal particle simulation with forces and everything. It's really good. You can practically see the forces expressed as invisible bubbles pushing the visible particles around (which is how I like to think of Conway's Game too) like one would imagine magnetic, strong/weak nuclear, and other forces to do. Really neat. Those Python data visualization libraries are incredible.

  • @asian2700
    @asian2700 Před 3 lety +3

    See you guys in ten years when this gets recommended

  • @ba-it3xz
    @ba-it3xz Před 3 lety +3

    1:15 imagine you are the blob at x-20 (ish) y 25 and you just see that... thing... vibrating it’s surroundings into oblivion...

  • @haloguyproductions2850
    @haloguyproductions2850 Před 3 lety +2

    that one cluster was listening to gaming intro music

  • @ZER0--
    @ZER0-- Před rokem

    The one "creature seem to be eating other creatures but not the yellow detritus that looked like pond scum, and there were two fish like things that were also growing. Fascinating stuff.

  • @iminni3459
    @iminni3459 Před 3 lety +18

    Doesn't really have anything to do with Conway's Game of Life in particular, but it is very cool.

  • @Holt-120
    @Holt-120 Před 2 lety +3

    That one cluster kind of found a way to get more material by esentially gyriating extremely fast, It was esentially using a glitch to get around to consume more. Quite cool behavior (even if there is really none)

  • @MogaTange
    @MogaTange Před 3 lety +1

    The blue one near the end that just swam around any obstacle it hit.

  • @sky173
    @sky173 Před 3 lety +42

    This is awesome. Where can I download this? I hope you continue to develop this.

  • @user-iq5mi5jn8c
    @user-iq5mi5jn8c Před rokem

    This pulsating cluster looks like an aggressive swarm of all sorts of debris that has been swallowed up by anything that didn't repel it well enough

  • @AAvfx
    @AAvfx Před 3 lety +11

    Outstanding! 👌

  • @kothekarswaraj
    @kothekarswaraj Před 3 lety +1

    that big one is so energetic due to conservation of linear momentum

  • @willd4686
    @willd4686 Před 3 lety +3

    Thanks for including the source!

  • @DominicRyanOsborne
    @DominicRyanOsborne Před měsícem +1

    That's a heartbeat, in some states you can't turn off the simulation

  • @lightspeedproject
    @lightspeedproject Před 2 lety

    This, is exactly how our universe is, but a bit more complex

  • @Asterism_Desmos
    @Asterism_Desmos Před rokem

    Everyone talking about that one cluster doing backflips and devouring the ecosystem around it

  • @Gavin_Gladiator975
    @Gavin_Gladiator975 Před 2 lety

    Green nucleus unstable and will aways be, blue nucleus stable and will stay calm until to big, yellow nucleus stable as well and cell doesn't move unless touched and will follow blue if no Green particals around it

  • @deathbyseatoast8854
    @deathbyseatoast8854 Před 3 lety +1

    "Buh buh buh you cant! BEcuz ENDROPEY!"

  • @md.niamulahadchowdhury6407

    0:22 That's me at a buffet.

  • @PasseScience
    @PasseScience Před 3 lety +2

    Hello, few questions: Is the video real time? (and nothing in the program to artificially slowing it down?). How many particles are there on screen? Do you use CPU or GPU? and last question: when looking for interaction between particles do you scan quadratically ("For each" inside a "for each", NxN complexity) or is there a trick or a specific structure like BSP-tree etc... ?

  • @ChillkittzGT
    @ChillkittzGT Před 3 lety

    0:28 and so, the orange green parasite has started it all...

  • @nobodynowhere8061
    @nobodynowhere8061 Před 3 lety +18

    In theory if you had a large enough simulation you would probably eventually start to develop intelligent life

    • @lordtomlluckrahthegreat9014
      @lordtomlluckrahthegreat9014 Před 3 lety +5

      Given you have billions of years to spare

    • @Isiel42
      @Isiel42 Před 3 lety +4

      @@lordtomlluckrahthegreat9014 Nah, just impliment a speed button.

    • @superfeel1275
      @superfeel1275 Před 3 lety +4

      @@Isiel42 still would take massive computational power (bigger than anything we can possibly ever have) and billions of years

    • @lordtomlluckrahthegreat9014
      @lordtomlluckrahthegreat9014 Před 3 lety +3

      @@Isiel42 Or maybe having a simulating machine that is divided into several independent, but cooperative, cores, so the more time that goes by the more cores that get added to the machine, and the more advanced this cores would be.
      It would still require a ludicrous amount of energy, to keep it running for however many eons as it needs to be running, independently of the number of cores; scientifically speaking, things can be done faster, but not cheaper.

    • @mr.cheese5697
      @mr.cheese5697 Před 3 lety

      And 3 dimensions, and non alive stuff that if taken right and rearenge in right way are alive

  • @orbismworldbuilding8428

    Interesting, this setup results in what looks like a lifecycle of sorts

  • @user-uj2sg7hg7h
    @user-uj2sg7hg7h Před rokem +1

    It's like a single living cell

  • @Eldealerdle
    @Eldealerdle Před 2 lety +1

    I don't how this give me a huge existencial crisis :')

  • @Alexander_Sannikov
    @Alexander_Sannikov Před 3 lety +1

    static and evolved structures look cool, but you really need to find a way to calm that dude down

  • @AetherBoye
    @AetherBoye Před 2 lety

    blue gloop ball, no! you became that which you sought to avoid!

  • @AnasQiblawi
    @AnasQiblawi Před 3 lety +18

    Wow, this is really something.
    the best Particle Game of Life I've ever seen
    I tried your script but it looked a little different
    how can I make the same as in video
    can you do a tutorial

    • @sciencemathematics
      @sciencemathematics  Před 3 lety +13

      You have to play around a bit with the parameters. I will look into doing a tutorial. Great idea!

    • @AnasQiblawi
      @AnasQiblawi Před 3 lety +2

      @@sciencemathematics thanks, you are the best 😍

    • @Francisco-jk3dg
      @Francisco-jk3dg Před 3 lety

      @@sciencemathematics my god! subscribed!

  • @waterl0gged756
    @waterl0gged756 Před 3 lety +2

    1:15 bonjour to you too

  • @snickle1980
    @snickle1980 Před 3 lety +2

    Keep that twitchy one away from me.

  • @amog8202
    @amog8202 Před 3 lety +1

    Bro you made actual life, keep that running on a large scale in 3d

  • @aiexzs
    @aiexzs Před 3 lety +2

    i cant even being to imagine how this works

  • @sourcepotato_bwobby
    @sourcepotato_bwobby Před 2 lety

    Damn that chunky lad really killed the server, ey.

  • @REKSIV
    @REKSIV Před rokem +1

    the singularity farmers and software slavers responsible for string feeding loops to good people in disillussionment deserve informationlessness

  • @dylanslingsby7643
    @dylanslingsby7643 Před 2 lety +1

    Try turning down the distance of reactivity it will have less extreme results

  • @Fiifufu
    @Fiifufu Před 3 lety +4

    This is amazing

  • @mrskeleton9462
    @mrskeleton9462 Před 3 lety

    all better by the supernova goin about

  • @taco5430
    @taco5430 Před 4 lety +7

    how do i run it? i really want to play this game

  • @shigaraja
    @shigaraja Před 3 lety +1

    im very curious as to the "rules" you gave the particles. 1. is obviously that like particals attract.

  • @zeNUKEify
    @zeNUKEify Před 3 lety

    It’s so organic-looking that it triggers a sense of disgust from me

  • @olDox222
    @olDox222 Před 3 lety +2

    this is fantastic.

  • @Asdayasman
    @Asdayasman Před 2 lety

    Yo he's fuckin' tearin' it up.

  • @ericschneider3852
    @ericschneider3852 Před 3 lety +5

    Can you share the parameters you used to get this visualization? I’ve been been struggling to replicate your results and my CPU slows down after > 400 particles.

    • @ericschneider3852
      @ericschneider3852 Před 3 lety +1

      Really amazing visualization by the way!

    • @cosmosaodyssey2188
      @cosmosaodyssey2188 Před 3 lety +1

      @@sciencemathematics like any scientist, a computer scientist should always record conditions of their experiments.
      You could dump initial conditions to text in the future.
      Wonderful job by the way

    • @n8style
      @n8style Před 3 lety

      @@sciencemathematics do you use a quadtree or something similar to hold the particles? if not that would help improve calculation times for higher numbers of particles

    • @qwerty81808
      @qwerty81808 Před 3 lety

      @@n8style maybe that would help in a more sparce simulation, but I think this is too busy for that to actually result in noticable performance improvements.
      Best thing to do, performance wise, is probably translate this into a compute shader.

    • @n8style
      @n8style Před 3 lety

      @@qwerty81808 have to disagree, but interesting ideas nonetheless

  • @nerfjanetreal
    @nerfjanetreal Před 2 lety

    dancing cell! dancing cell!!

  • @LeetMath
    @LeetMath Před 3 lety +1

    i wonder what doing this kind of thing in 3d would be like

  • @katakana1
    @katakana1 Před 3 lety

    Evolution of NCS visualizations.

  • @danielpalecek4090
    @danielpalecek4090 Před 10 měsíci

    dat kraken attack

  • @brgbrgnrgbbgdbfgrnntyj5yrdhegj

    0:03 when everything formed

  • @aratherbluemicroscope5991

    please do more

  • @user-uh4gm8ls8n
    @user-uh4gm8ls8n Před 4 lety +3

    Too amazing

  • @jamdonut
    @jamdonut Před 3 lety

    This is beautiful

  • @01111011111101etc
    @01111011111101etc Před 3 lety

    It is alife with various interesting behaviors, but has almost nothing to do with biological life. Thanks for the code, it is fun to experiment with!

  • @robinpage9362
    @robinpage9362 Před 3 lety

    Now I want to make it in 3D with voxels

  • @mr.cheese5697
    @mr.cheese5697 Před 3 lety

    Does it have anything to do with biochemistry? (Carbone/silicon/bruh based advanced molecules)

  • @peasant8246
    @peasant8246 Před 3 lety +2

    Can we get another video like this, please?

  • @nemesisurvivorleon
    @nemesisurvivorleon Před 2 lety

    Psychotic Jellyfish simulator

  • @Taevec
    @Taevec Před 3 lety +1

    This close to discovering perpetual motion.👌

  • @gameplaybyarithene
    @gameplaybyarithene Před rokem

    May be they have consciousness..

  • @orirori8294
    @orirori8294 Před 3 lety +2

    how can you run it so smooth my computer cant handle it

  • @raffaelfigueroa4308
    @raffaelfigueroa4308 Před 2 lety +1

    Wait, this happend by itself?

  • @_robespierre
    @_robespierre Před 5 měsíci

    turn on gigi d´agostinos "blablabla" and watch this vid here^^

  • @gustavo9758
    @gustavo9758 Před 2 lety

    Yeah Science b*tch!
    Seriously tho, I love this, I can't wait to code some GLSL for it!

  • @AlexMoreno-zj7po
    @AlexMoreno-zj7po Před 3 lety +1

    wow I love it

  • @definitelyjunkie3374
    @definitelyjunkie3374 Před 3 lety

    This is incredible!!

  • @akshatverma5478
    @akshatverma5478 Před 3 lety

    Did you use quadtrees for the computation for all particles? Because these are a lot of particles

  • @terozak4140
    @terozak4140 Před 2 lety

    Maybe incerase the viscosity a bit

  • @endingalaporte
    @endingalaporte Před 3 lety

    I can't reproduce the same results with the code, just the initial state remains, any help? Thanks for the video though t !

  • @hellatze
    @hellatze Před 3 lety

    the game of lag

  • @Bibibosh
    @Bibibosh Před 3 lety

    My brain on acid.

  • @dvdino3402
    @dvdino3402 Před 3 lety

    Inverted T in the top left corner lol

  • @Foxxorz
    @Foxxorz Před 3 lety +1

    I don't know why evolution is so hard to understand...

    • @01111011111101etc
      @01111011111101etc Před 3 lety

      This is not about evolution (no "genetics", no biosynthesis, no metabolism...). It is about weird twisting of "physical" interactions to produce behaviors which looks similar to life.

  • @ardaehi
    @ardaehi Před 2 lety

    Whu does this hard bass thing happen?

  • @emperorpalpatine2721
    @emperorpalpatine2721 Před 3 lety

    How exactly do I play this? The link leads to a page with a source code, but I do not know how to see the images.

  • @coronagamer4915
    @coronagamer4915 Před 3 lety +1

    Is there any online simulation of this ?

  • @patrickhodson8715
    @patrickhodson8715 Před 3 lety +1

    Ok so please don’t take this the wrong way but what the _fuck_

  • @lubneko
    @lubneko Před rokem

    Just chill bro

  • @HuigbertsGamed
    @HuigbertsGamed Před 3 lety +1

    You thought you could just upload agar. io and give it a different name thinking we wouldn't notice

  • @hoba3040
    @hoba3040 Před 3 lety

    Interesting…

  • @user-uh4gm8ls8n
    @user-uh4gm8ls8n Před 4 lety +4

    Source code please

    • @user-uh4gm8ls8n
      @user-uh4gm8ls8n Před 4 lety +2

      Thank you a lot.i am wondering what if the 『universe』 also expanding .....

  • @FractusFractaurus
    @FractusFractaurus Před 3 lety

    The New update of agar.io is lit.

  • @6bim4uYGfeGSM4jdEm9g2
    @6bim4uYGfeGSM4jdEm9g2 Před 2 lety

    what if it's just a simulation

  • @hareeshscifi13
    @hareeshscifi13 Před 3 lety

    Sync some rock music on this

  • @stimfavid3797
    @stimfavid3797 Před 2 lety

    👍

  • @Trooperos90
    @Trooperos90 Před 2 lety

    this is actually really disturbing

  • @snowob
    @snowob Před 3 lety +2

    that one cluster just like: czcams.com/video/K3N3ieBQzLE/video.html