Asymmetrically interacting particles - Python version
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....
That one cluster needs to chill the heck out.
true he is literally devouring everyone
i think he had an overdose of every drug at once
I believe that happens because of:
conservation of momentum
no friction
non-existing Newton's third law
i hate that i know the one youre talking about
The One, he's moving like one of the agents.
I love how there's just this cell that has no purpose but to dance hardbass.
It has a purpose. Destroying everything to the sound of hardbass.
lmao
its even funnier, considering how well made and thought through all the other cells look (ability to move/steer/etc.)
looks like heart beats. some them look like they're about to have a heart attack
ignore the pulsating demon he won't hurt you (yet)
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).
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!
@@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.
@@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.
@@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
all the other cells minding their business and then there's the one listening to eurobeat and going crazy on the cellular dance floor
He's driftin like a champ tho
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.
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
*The bouncy ball encompasses all*
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.
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!
Now is absolutely clear: our universe is a cellular automaton.
And that's only one half of our perception! 😀
@@spencersmith4305 It needs wide reflections about you commented here.
Stephen Wolfram says YES.
rather cellular automation is a much simplified version of the fundamental mechanics of our universe, very interesting nontheless.
Obviously. I'm surprised it took you this long to figure out.
Thanks for leaving the axes in, very important for studying the behaviour of these particloids
The nervously spazzing cell cluster is like greed and the concept of unlimited growth which completely fucks up peace in it's enviroment
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.
It looks like they are evolving throughout generations
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.
See you guys in ten years when this gets recommended
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...
that one cluster was listening to gaming intro music
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.
Doesn't really have anything to do with Conway's Game of Life in particular, but it is very cool.
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)
The blue one near the end that just swam around any obstacle it hit.
This is awesome. Where can I download this? I hope you continue to develop this.
pastebin.com/hN73caUt
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
Outstanding! 👌
that big one is so energetic due to conservation of linear momentum
Thanks for including the source!
That's a heartbeat, in some states you can't turn off the simulation
This, is exactly how our universe is, but a bit more complex
Everyone talking about that one cluster doing backflips and devouring the ecosystem around it
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
"Buh buh buh you cant! BEcuz ENDROPEY!"
0:22 That's me at a buffet.
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... ?
0:28 and so, the orange green parasite has started it all...
In theory if you had a large enough simulation you would probably eventually start to develop intelligent life
Given you have billions of years to spare
@@lordtomlluckrahthegreat9014 Nah, just impliment a speed button.
@@Isiel42 still would take massive computational power (bigger than anything we can possibly ever have) and billions of years
@@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.
And 3 dimensions, and non alive stuff that if taken right and rearenge in right way are alive
Interesting, this setup results in what looks like a lifecycle of sorts
It's like a single living cell
I don't how this give me a huge existencial crisis :')
static and evolved structures look cool, but you really need to find a way to calm that dude down
blue gloop ball, no! you became that which you sought to avoid!
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
You have to play around a bit with the parameters. I will look into doing a tutorial. Great idea!
@@sciencemathematics thanks, you are the best 😍
@@sciencemathematics my god! subscribed!
1:15 bonjour to you too
Keep that twitchy one away from me.
Bro you made actual life, keep that running on a large scale in 3d
i cant even being to imagine how this works
Damn that chunky lad really killed the server, ey.
the singularity farmers and software slavers responsible for string feeding loops to good people in disillussionment deserve informationlessness
Try turning down the distance of reactivity it will have less extreme results
This is amazing
all better by the supernova goin about
how do i run it? i really want to play this game
im very curious as to the "rules" you gave the particles. 1. is obviously that like particals attract.
It’s so organic-looking that it triggers a sense of disgust from me
this is fantastic.
Yo he's fuckin' tearin' it up.
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.
Really amazing visualization by the way!
@@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
@@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
@@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.
@@qwerty81808 have to disagree, but interesting ideas nonetheless
dancing cell! dancing cell!!
i wonder what doing this kind of thing in 3d would be like
Evolution of NCS visualizations.
dat kraken attack
0:03 when everything formed
please do more
Too amazing
This is beautiful
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!
Now I want to make it in 3D with voxels
Does it have anything to do with biochemistry? (Carbone/silicon/bruh based advanced molecules)
Can we get another video like this, please?
Psychotic Jellyfish simulator
This close to discovering perpetual motion.👌
May be they have consciousness..
how can you run it so smooth my computer cant handle it
Wait, this happend by itself?
turn on gigi d´agostinos "blablabla" and watch this vid here^^
Yeah Science b*tch!
Seriously tho, I love this, I can't wait to code some GLSL for it!
wow I love it
This is incredible!!
Did you use quadtrees for the computation for all particles? Because these are a lot of particles
Maybe incerase the viscosity a bit
I can't reproduce the same results with the code, just the initial state remains, any help? Thanks for the video though t !
the game of lag
My brain on acid.
Inverted T in the top left corner lol
I don't know why evolution is so hard to understand...
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.
Whu does this hard bass thing happen?
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.
@@sciencemathematics Ah, ok. Thank you.
Is there any online simulation of this ?
Ok so please don’t take this the wrong way but what the _fuck_
Just chill bro
You thought you could just upload agar. io and give it a different name thinking we wouldn't notice
Interesting…
Source code please
Thank you a lot.i am wondering what if the 『universe』 also expanding .....
The New update of agar.io is lit.
what if it's just a simulation
Sync some rock music on this
👍
this is actually really disturbing
that one cluster just like: czcams.com/video/K3N3ieBQzLE/video.html