New version with better marker algorithm allowing path optimization New data model (x3 perf) Old video • C++ Ants Simulation 1,... Github github.com/johnBuffer/AntSimu... Music freepd.com/music/The%20Lagoon...
Пікірлер: 484
@PezzzasWork3 жыл бұрын
Windows release, instructions in the ReadMe file github.com/johnBuffer/AntSimulator/releases/download/v2.1/AntsSimulator.zip
@xere19173 жыл бұрын
is it possible to add two types of ants with different behavior and start positions for a simulation like this?
@qu7653 жыл бұрын
very cool, i probably spent 2-3 hours just playing with this
@rxkshan3 жыл бұрын
Okay
@tsm6883 жыл бұрын
is it possible to make a version of this which isn't purely fullscreen?
@rxkshan3 жыл бұрын
@@tsm688 possible
@THExRISER3 жыл бұрын
It's amazing how cool complex behavior can emerge out of very simple rules.
@betterfly73983 жыл бұрын
@MorTobXD Is the course on chaos theory?
@THExRISER3 жыл бұрын
@MorTobXD Well that's a shame, it sounded inteesting.
@nameismetatoo45913 жыл бұрын
Not just behavior, but also life itself also emerges from simple rules: 1) Eat 2) Don't get eaten 3) Reproduce. If you want to get really philosophical, you could argue that what ultimately drives this emergence of complexity is a simple energy gradient; hot sun + cold space = a flow of energy that can be exploited to rearrange molecules, i.e. life.
@gileee3 жыл бұрын
Just what I was thinking. Rule: Sebastian Lague puts out a video Result: KZbin gets flooded with copies jk jk
@foxolotl43893 жыл бұрын
And its very interesting to see that they keep their rules in mind.
@Rickilicious3 жыл бұрын
this is pretty dope. a lot of others have taken inspiration from your work, but the pathing on the ants here is top tier. The ants slowly optimizing the lines seems very organic and authentic too. Please keep extending this silly little project. Add a queen and larvae or opposing ant colonies or something. you slowly perfecting their behavior is very entertaining for me as a viewer.
@fakedoorsfordinner16773 жыл бұрын
Agree
@terrasolaris51043 жыл бұрын
KZbin needs more commentors like you. Agreed 👽
@antoninperbosc15323 жыл бұрын
Whend looking at this video of this beautifull ants simulation this remember me dendrits in bio neural networks, fungus filament or blob system ...
@THEcrosby3 жыл бұрын
Yeah what he said
@Jaun_3 жыл бұрын
This could work for multiple spawn points too I’d imagine - would be interesting to see it the ants choose the more optimal spawn point
@littensy3 жыл бұрын
Where we dropping arthropods
@bigsmoke64143 жыл бұрын
Or the Option to RAID/eat rival Spawn points
@CMDRunematti2 жыл бұрын
couple billion spawns and you have a human brain made of ants (cant be looking like neurons only to me)
@zarro1103 жыл бұрын
I liked how at 1:30 the whole path swings back and forwards like a tentacle sucking up food
@zarro1103 жыл бұрын
btw: can you do a maze (with multiple valid paths) and see if they optimize that? You would probably have to set the variable to stray from the path pretty high to make that work but it would be a fun experiment to see.
@Grgrqr3 жыл бұрын
Or brain cells
@betterfly73983 жыл бұрын
@@zarro110 I don't know if you know but, there is literally an algorithm called ant colony optimization.
@EnergiaRocket3 жыл бұрын
I saw "Thanks for watching" and was sad that my daily dose of beautiful patterns was over. Then I saw that the "Thanks for watching" was food too, and was happy again :D
@miner42363 жыл бұрын
Absolutely genius ending lol. Homemade video editing :D
@123TeeMee3 жыл бұрын
I like that theres all sorts of ways this stuff can be extended. Maybe evolve colonies whose coefficients and stuff are defined by genes
@alrineusaldore67643 жыл бұрын
That ending when the ants ate the "thanks for watching" was so satisfying lol
@oakleaves36053 жыл бұрын
We need this as a wallpaper, would love to have it on my wallpaper engine library
@du42bz3 жыл бұрын
This is awesome Now imagine this but a 1 hour long version
@mr.norris38403 жыл бұрын
Background music be like: *Yeah, this is an Avengers level threat*
@hatinc.56243 жыл бұрын
No, these are the antvengers!
@rxkshan3 жыл бұрын
No
@mr.norris38403 жыл бұрын
@@rxkshan Yes
@rxkshan3 жыл бұрын
@@mr.norris3840 no
@mr.norris38403 жыл бұрын
@@rxkshan Yes
@shadrsabirov64123 жыл бұрын
-How do you spend your free time? -I watch ants walk
@ITR3 жыл бұрын
It would be cool to see simulations of two separate colonies with separate markers, having them use their own colony's markers and move a way from the foreign ones.
@UmzGames3 жыл бұрын
There is nothing so satisfying like watching ants, or anything that simulates ants..
@unknown-re9vv3 жыл бұрын
Great content man, I got the first ants video recommended to me and I must say I was very impressed by your work. Keep learning, keep growing. You have a lot of potential.
@laurino.3 жыл бұрын
I would like to see that the ants return even if they didn't get food, to follow others or just because they are too far from home and find nothing
@nibbletrinnal22893 жыл бұрын
This makes quite a bit of sense, actually. No use wandering forever in the opposite direction of the food so you may as well go back home and see if there're any existing paths to food
@marianaurel3 жыл бұрын
This is absolutely amazing. The way coding and visual animations were implemented are very impressing!! It's emotional to see other people achieving this kind of skills.
@skipfred3 жыл бұрын
Wow, I've seen a lot of ant simulators but what you've done here is probably the most organic and natural system I've seen. Great works really interesting and beautiful patterns
@anywallsocket3 жыл бұрын
I was literally going to ask about path optimization after watching your last video, and here you've gone and done it! Cheers mate, very impressive work.
@falacommeufalo22823 жыл бұрын
Man, i love your videos!
@Daxelinho93 жыл бұрын
It's so satisfying! I could watch this content for hours on end.
@underslash8983 жыл бұрын
Just started watching you, but this is great content :)
@nolanbie36642 жыл бұрын
It’s so interesting to see how Nature imitates nature even in a simulation. That test near the end was honestly looking like a plasma ball. It’s so interesting because it’s still based on the idea of take the easiest path with the least resistance which almost everything in existence follows.
@nolanbie36642 жыл бұрын
I’m way to high for this
@xcreeperbombx613 жыл бұрын
Suggestion: Enemy colonies/species Description: You have the option to look at the perpective of a ant colony. This will visually make the dots of the other colonies blue. Ants without food may follow the blue trails, while ants with food will avoid it. Two ants of different colonies when close to each other will "fight", which simply chooses a random ant to get removed. If the removed ant had food, there will be a food piece where it died. Added stuff: Dots have colony marker, different ant types, ant home marker, ants will "fight" with random winner ------------------------------------- Suggestion: Regrowth Description: Empty space near food will have a chance of becoming food. There is also a super smaller chance that the empty space will do it without being near food Added stuff: Empty space will become food with a chance of N+(0.125-N/8)*F (N being a small number, F being food nearby, and the chance being in decimal form) ------------------------------------ Suggestion: Reproduction Description: An amount of food at a colony nest will create an ant of that colony. Should work best with the Enemy colonies/species suggestion. Added stuff: The stuff is litterally said in one sentence for this suggestion, why do you need this section?
@WatOnsonn3 жыл бұрын
This should have so many more views. Amazing work
3 жыл бұрын
This is great work! You have won another subscriber.
@_freeze3253 жыл бұрын
It's like a lightning ! Beautiful
@richardcoppin53322 жыл бұрын
Absolutely stunning.
@shottysteve2 жыл бұрын
this makes me wonder how ants actually find their way back to the nest… really cool work, great job!
@orangeduritospacesystems84763 жыл бұрын
Amazing work man! This is so inspiring.
@elaabaj66273 жыл бұрын
Thanks, this is really motivating and cool!
@ImminentTempest2 жыл бұрын
The art formed by the paths is just amazing..
@Ray-jg5dj3 жыл бұрын
This is absolutely fascinating
@mr.classyyt8963 жыл бұрын
This is just... Amazing!
@snactimusmaximus3 жыл бұрын
The “Thanks for Watching” is brilliant and a testament to your design of the simulator.
@markusbuchholz35183 жыл бұрын
From my humble point of view, you Jean is an SW artists who matches beauty of C++, state-of-the-art concept and music. Awesome effort and outstanding results. Remarkable YT channel and community. Thanks and have a nice day!
@ekremdincel15053 жыл бұрын
Beauty of C++? I think you meant the beauty of the buffer overflows lol.
@collin20973 жыл бұрын
i think you should add a "infinite food" thing, which doesn't deplete, so that some wont have to constantly place more food whenever it depletes
@tabularasa06063 жыл бұрын
Random food spawns! And random obstructions falling into place.
@HyperMAX9001 Жыл бұрын
@@tabularasa0606 And hunger for the small creatures. If it goes full, they die.
@stoobidthing Жыл бұрын
@@HyperMAX9001 >"And hunger for the small creatures. If it goes full, they die." He implemented this in the newer versions but a little differently, If an ant goes too far from either its colony or food for too long it dies
@jonathanfitzgerald78823 жыл бұрын
Now where have I seen these patterns before? Awesome work!😎
@argore97093 жыл бұрын
This is sick! Would be interesting to see different ant colonies fighting for resources and/or paths to said resources
@antoniohenrique67493 жыл бұрын
Your C++ code is so good that i am still seeing ants on my screen even 10 minutes after watching the video
@mateuszkolpa3 жыл бұрын
Awesome work! :))
@tyler28543 жыл бұрын
Wow, that's super cool. I liked the first one, but this is even better!
@willjohnson45793 жыл бұрын
seeing you make a part 2 to this almost a year later makes me wanna pick up some old projects! I wonder, did you think your old code was bad?
@dan_obie3 жыл бұрын
I love this so much. I'd love to see a simulation on bacterial "random walk motility" toward a chemical signal.
@HPetch3 жыл бұрын
Very cool! One thing that does kind of bug (heh) me is that the ants themselves aren't particularly realistic - most notably, they have infinite stamina - but trying to model that in a way that both performs reasonably well and actually generates interesting results is probably more trouble than it's worth.
@ShunanoriNisinomiya Жыл бұрын
I love insects and when I was a kid I used to watch ants all the time. Thanks for the great video.
@kritiker27973 жыл бұрын
love this
@bananafructa20973 жыл бұрын
This pretty much sums up the basics of genetic algorithms
@koloooko3 жыл бұрын
Simple and pretty animations! A question came to mi mind: how many ants do you need in order to get best results using this algorithm? Would it work with a half or a quarter of ants you used in your video? Thanks!
@tattwashiwani31582 жыл бұрын
I perceive the ants as humans exploring the conundrums of our universe 😍
@nou48983 жыл бұрын
i like how the paths optimize into kinda streight lines
@leoponce82ponce3 жыл бұрын
holy shit man.. this is one of the coolest things i've seen.
@punk3900Ай бұрын
amazing how simple rules lead to complex outcomes
@DeepRafterGaming3 жыл бұрын
Nice... I think i could be optimized somewhat by adding a third marker type of "No more food to be found here", to get rid of the slow decaying food marker. I believe that's how real ants handle it as well. Really nice work ^^
@yannpejon30633 жыл бұрын
So cool, great job !
@merion2972 жыл бұрын
Incredible. You modelled how our brain works.
@alik2503 жыл бұрын
It's the opposite of chaos! Any input results in an expected path! Good stuff
@thezen93 жыл бұрын
Order emerging from chaos.
@Dillbeet3 жыл бұрын
This science is so rad
@jingyang49497 ай бұрын
this looks awesome
@ThylineTheGay3 жыл бұрын
This makes me really want a factorio like game but with ants
@claridadespontanea11953 жыл бұрын
Pretty cool, thanks for this
@amateurishauthor22022 жыл бұрын
Watching the paths work themselves out when you remove parts of obstacles was a spectacle
@Cam-ej1cu3 жыл бұрын
This was really cool
@haaaaf80872 жыл бұрын
The concept is so simple, yet no one has thought about it
@KaletheQuick3 жыл бұрын
This is super cool! Has anyone tried adding more pharamones? Tasks? or perhaps an enemy colony? Perhaps a 'death' pharamone that invites others to investigate, and a fighting pharamone. I love ants and my mind is racing! I'll check out the github :D
@kiarashsabahi29592 жыл бұрын
Cool man, nice job. :)
@nazariimoroz62163 жыл бұрын
Man, great work! Also, it's great that you posted the program but I'm begging you, please please please make a video tutorial of how you coded the simulator...
@blurblur3642 Жыл бұрын
This is a amazing and beautiful simulation! And inspred by you, I make a simillar Ant Simulation in Unity but I am stucking in some troubles. My ants now can seach for food and build paths between home and foods. But they were not able to optimize the path. Because I am not sure how to "determine the ant's tendency to get out of the way", and I just set a random bool to determine weather should the ant follow the Pheromones or just wander each frame. Predictably it didn't work. May I know how you handle this? And thanks for your time to read this message!
@AnriGochevich3 жыл бұрын
Looks like a great attractor
@retard15823 жыл бұрын
So one thing i noticed that real ants do that your simulation is not doing is surrounding the food source. I hypothesise that they do this to avoid the behaviour that your simulated ants perform when the food source dries up. by surrounding the food source, they can guage how much food is left. if 30 ants can touch the food at once, there is more of it than if only 10 can. This also allows for the ants to take more of the food faster, as more workers can be feeding at a given moment in time. However, I believe the main difference lies with the fact that as the food depletes, less and less workers should be going to the food source. In nature, there are never large piles of ants that burst away from where a source of food source once was, and wander aimlessly around. Great work. I just looked at some other videos showing 2D ant feeding simulations, and so far I believe yours is the most natural. Fixing the surrounding behaviour would definately improve it though.
@jatinsaini77903 жыл бұрын
Ants got smarter! Great and cool stuff.
@MonoRender3 жыл бұрын
Beautiful!
@Leo-ii4hy3 жыл бұрын
Looks organic 👍👍👍
@chris431233 жыл бұрын
I would love to see this a wallpaper engine background
@Krarilotus3 жыл бұрын
can you make a simulation video with like 'difficult terrain' and such and maybe multiple food sources, which also are ranked differently according to their size/benefit as food for the ants?
@jackmann88283 жыл бұрын
This is awesome
@FromaGaluppo3 жыл бұрын
Great video!
@augusto2563 жыл бұрын
This could be very useful for some applications.
@idiottest53 жыл бұрын
Could you make it so that if they often move past some wall they have a chance of removing (eating) the wall block, so over time they can burrow through walls?
@pinaz9933 жыл бұрын
This makes me wonder if you could use a similar technique to implement pathfinding in a 3d environment, though it would only be good for a system that would have the opportunity to use the path over and over again.
@yashwanth82692 жыл бұрын
Beautiful
@thepaleone23693 жыл бұрын
i think it would be really cool to make them go through a maze and see how they optimise a really complex path like that, you could even have the maze change half way through and see what happens!
@JSiuDev3 жыл бұрын
Beautiful!!!!
@pepper1823 жыл бұрын
i love that min 5:32. good content and awesome work
@Sleepy_Cattt3 жыл бұрын
4:25 it's like one of those lightning ball things!
@kyugokato22622 жыл бұрын
This is legit cool
@mn48403 жыл бұрын
Офигенно! )
@gal7493 жыл бұрын
I just wwtched downloaded the 1st one two days ago. It's my lucky day :-)
@shubhsharma1503 жыл бұрын
beautiful
@baonguyenanh50773 жыл бұрын
Thiss iss just cool, yess i know you will make a better video than the first one
@tenbeat3 жыл бұрын
Digger ants would be an interesting mechanic.
@HBCrigs Жыл бұрын
Woahhhh it feels like a river simulation
@easternestal41813 жыл бұрын
Thank you recommended
@franciscojaviermartindelca73333 жыл бұрын
Love this
@SaLaGaDH3 жыл бұрын
Thank you!
@TylerGeho Жыл бұрын
This would be a good program to find the optimal route around a racetrack using the obstacles as grass. Would be cool to see the similarities between this program and F1 drivers around the same track.
@RoboticusMusic3 жыл бұрын
What does it mean for something to be food most fundamentally?
@claridadespontanea11953 жыл бұрын
Cool stuff I want to see / I might code later: - Fatigue / nutrition - Reproduction when surplus of food in nest
@ewaldlatreider51272 жыл бұрын
Good job mr rooster
@EmmaElite3 жыл бұрын
From a distance and sped up this reminds me of how electricity flows path of least resistance