Asymmetrically interacting particles - Python version

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 เม.ย. 2020
  • Source code (python):
    github.com/ebokai/particle_ga...
    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.wordpress.com/2...
    www.ventrella.com/Clusters/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 165

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

    That one cluster needs to chill the heck out.

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

      true he is literally devouring everyone

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

      i think he had an overdose of every drug at once

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

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

    • @Wyrmwould-Star
      @Wyrmwould-Star 3 ปีที่แล้ว +2

      i hate that i know the one youre talking about

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

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

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

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

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

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

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

      lmao

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

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

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

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

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

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

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

      He's driftin like a champ tho

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

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

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

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

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

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

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

      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!

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

    *The bouncy ball encompasses all*

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

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

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

    See you guys in ten years when this gets recommended

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

    It looks like they are evolving throughout generations

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

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

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

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

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

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

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

      Stephen Wolfram says YES.

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

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

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

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

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

    that one cluster was listening to gaming intro music

  • @ZER0--
    @ZER0-- ปีที่แล้ว

    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.

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

    Outstanding! 👌

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

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

  • @user-iq5mi5jn8c
    @user-iq5mi5jn8c 10 หลายเดือนก่อน

    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

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

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

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

    Thanks for including the source!

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

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

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

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

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

    This is amazing

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

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

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

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

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

    this is fantastic.

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

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

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

    This is beautiful

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

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

    This is incredible!!

  • @md.niamulahadchowdhury6407
    @md.niamulahadchowdhury6407 2 ปีที่แล้ว +1

    0:22 That's me at a buffet.

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

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

  • @user-uh4gm8ls8n
    @user-uh4gm8ls8n 4 ปีที่แล้ว +3

    Too amazing

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

    "Buh buh buh you cant! BEcuz ENDROPEY!"

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

    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

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

    1:15 bonjour to you too

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

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

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

      @@sciencemathematics thanks, you are the best 😍

    • @Francisco-jk3dg
      @Francisco-jk3dg 3 ปีที่แล้ว

      @@sciencemathematics my god! subscribed!

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

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

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

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

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

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

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

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

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

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

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

      Given you have billions of years to spare

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

      @@lordtomlluckrahthegreat9014 Nah, just impliment a speed button.

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

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

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

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

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

  • @user-uj2sg7hg7h
    @user-uj2sg7hg7h ปีที่แล้ว +1

    It's like a single living cell

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

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

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

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

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

    Can we get another video like this, please?

  • @mr.cheese5697
    @mr.cheese5697 2 ปีที่แล้ว

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

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

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

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

    i cant even being to imagine how this works

  • @AlexMoreno-zj7po
    @AlexMoreno-zj7po 3 ปีที่แล้ว +1

    wow I love it

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

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

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

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

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

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

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

    Damn that chunky lad really killed the server, ey.

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

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

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

    Yo he's fuckin' tearin' it up.

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

    please do more

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

      Really amazing visualization by the way!

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

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

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

      @@qwerty81808 have to disagree, but interesting ideas nonetheless

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

    Now I want to make it in 3D with voxels

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

    all better by the supernova goin about

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

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

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

    Is there any online simulation of this ?

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

    Keep that twitchy one away from me.

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

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

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

    dancing cell! dancing cell!!

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

    Evolution of NCS visualizations.

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

    0:03 when everything formed

  • @01111011111101etc
    @01111011111101etc 3 ปีที่แล้ว

    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!

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

    May be they have consciousness..

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

    Whu does this hard bass thing happen?

  • @danielpalecek4090
    @danielpalecek4090 8 หลายเดือนก่อน

    dat kraken attack

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

    Maybe incerase the viscosity a bit

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

    Wait, this happend by itself?

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

    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.

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

    Inverted T in the top left corner lol

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

    Interesting…

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

    Just chill bro

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

    This close to discovering perpetual motion.👌

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

    Sync some rock music on this

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

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

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

    the game of lag

  • @user-uh4gm8ls8n
    @user-uh4gm8ls8n 4 ปีที่แล้ว +4

    Source code please

    • @user-uh4gm8ls8n
      @user-uh4gm8ls8n 4 ปีที่แล้ว +2

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

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

    👍

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

    how the heck do i launch it?

  • @_robespierre
    @_robespierre 3 หลายเดือนก่อน

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

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

    is there a way that we can run this on our own?

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

      @@sciencemathematics how do we run it I already have python

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

      @@sciencemathematics thx

  • @6bim4uYGfeGSM4jdEm9g2
    @6bim4uYGfeGSM4jdEm9g2 2 ปีที่แล้ว

    what if it's just a simulation

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

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

    • @01111011111101etc
      @01111011111101etc 3 ปีที่แล้ว

      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.

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

    Is there a way to run this on android?

  • @a-ragdoll
    @a-ragdoll 3 ปีที่แล้ว +1

    how to run?
    edit: i need python dont i

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

      Sometimes python is cool

    • @a-ragdoll
      @a-ragdoll 3 ปีที่แล้ว +1

      @Joshua Diocares i know but i wanted this version

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

    My brain on acid.

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

    What are the rules?

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

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

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

    The New update of agar.io is lit.