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
@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
@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.
@alrineusaldore67643 жыл бұрын
That ending when the ants ate the "thanks for watching" was so satisfying lol
@shadrsabirov64123 жыл бұрын
-How do you spend your free time? -I watch ants walk
@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
@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
@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
@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.
@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.
@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
@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
@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.
@Daxelinho93 жыл бұрын
It's so satisfying! I could watch this content for hours on end.
@shottysteve2 жыл бұрын
this makes me wonder how ants actually find their way back to the nest… really cool work, great job!
@underslash8983 жыл бұрын
Just started watching you, but this is great content :)
@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
@falacommeufalo22823 жыл бұрын
Man, i love your videos!
@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.
@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.
@jonathanfitzgerald78823 жыл бұрын
Now where have I seen these patterns before? Awesome work!😎
@snactimusmaximus3 жыл бұрын
The “Thanks for Watching” is brilliant and a testament to your design of the simulator.
@argore97093 жыл бұрын
This is sick! Would be interesting to see different ant colonies fighting for resources and/or paths to said resources
@orangeduritospacesystems84763 жыл бұрын
Amazing work man! This is so inspiring.
@antoniohenrique67493 жыл бұрын
Your C++ code is so good that i am still seeing ants on my screen even 10 minutes after watching the video
@ImminentTempest2 жыл бұрын
The art formed by the paths is just amazing..
@tattwashiwani31582 жыл бұрын
I perceive the ants as humans exploring the conundrums of our universe 😍
@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?
@ShunanoriNisinomiya Жыл бұрын
I love insects and when I was a kid I used to watch ants all the time. Thanks for the great video.
@dan_obie3 жыл бұрын
I love this so much. I'd love to see a simulation on bacterial "random walk motility" toward a chemical signal.
@_freeze3253 жыл бұрын
It's like a lightning ! Beautiful
@tyler28543 жыл бұрын
Wow, that's super cool. I liked the first one, but this is even better!
@elaabaj66273 жыл бұрын
Thanks, this is really motivating and cool!
@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.
@mateuszkolpa3 жыл бұрын
Awesome work! :))
@mr.classyyt8963 жыл бұрын
This is just... Amazing!
@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.
@HyperMAX90012 жыл бұрын
@@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
@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 ^^
@bananafructa20973 жыл бұрын
This pretty much sums up the basics of genetic algorithms
@richardcoppin53323 жыл бұрын
Absolutely stunning.
@Ray-jg5dj3 жыл бұрын
This is absolutely fascinating
@leoponce82ponce3 жыл бұрын
holy shit man.. this is one of the coolest things i've seen.
@nou48983 жыл бұрын
i like how the paths optimize into kinda streight lines
@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!
@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.
@ThylineTheGay3 жыл бұрын
This makes me really want a factorio like game but with ants
@kritiker27973 жыл бұрын
love this
@yannpejon30633 жыл бұрын
So cool, great job !
@haaaaf80872 жыл бұрын
The concept is so simple, yet no one has thought about it
@amateurishauthor22022 жыл бұрын
Watching the paths work themselves out when you remove parts of obstacles was a spectacle
@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.
@pepper1823 жыл бұрын
i love that min 5:32. good content and awesome work
@kiarashsabahi29592 жыл бұрын
Cool man, nice job. :)
@jatinsaini77903 жыл бұрын
Ants got smarter! Great and cool stuff.
@Sleepy_Cattt3 жыл бұрын
4:25 it's like one of those lightning ball things!
@jingyang49498 ай бұрын
this looks awesome
@RobboMcjobbo Жыл бұрын
This really show how ants are extremely intelligent as a collective. They are the definition of "2 heads is better than 1".
@Cam-ej1cu3 жыл бұрын
This was really cool
@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...
@chris431233 жыл бұрын
I would love to see this a wallpaper engine background
@tenbeat3 жыл бұрын
Digger ants would be an interesting mechanic.
@claridadespontanea11953 жыл бұрын
Pretty cool, thanks for this
@baonguyenanh50773 жыл бұрын
Thiss iss just cool, yess i know you will make a better video than the first one
@FromaGaluppo3 жыл бұрын
Great video!
@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!
@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
@Dillbeet3 жыл бұрын
This science is so rad
@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.
@mn48403 жыл бұрын
Офигенно! )
@Leo-ii4hy3 жыл бұрын
Looks organic 👍👍👍
@gal7493 жыл бұрын
I just wwtched downloaded the 1st one two days ago. It's my lucky day :-)
@AnriGochevich3 жыл бұрын
Looks like a great attractor
@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?
@MonoRender3 жыл бұрын
Beautiful!
@AnYGamedude2 жыл бұрын
Yo sick dude!
@augusto2563 жыл бұрын
This could be very useful for some applications.
@jackmann88283 жыл бұрын
This is awesome
@FrostCraftedMC2 жыл бұрын
the way they form neural looking shapes makes me wonder if a similar method could be used for neural nets.
@CThaunts Жыл бұрын
This teaches us the ways of leadership too because this wouldn’t happen if one didn’t go to the food and bring it home
@HBCrigs Жыл бұрын
Woahhhh it feels like a river simulation
@JSiuDev3 жыл бұрын
Beautiful!!!!
@dragonminz6023 жыл бұрын
Looks amazing!! Have you used the GPU to compute this or is it all on the CPU?
@mementomori71603 жыл бұрын
99% he used GPU, CPU would be most likely dead, before 20s have passed, by dead, I mean that it would take an eternity to calculate this using CPU
@dragonminz6023 жыл бұрын
@@mementomori7160 XD jea thought so to. I want to try it to but first i have to learn how to use the GPU
@nils.83353 жыл бұрын
@@dragonminz602 I would guess that it's a shader
@mementomori71603 жыл бұрын
@@dragonminz602 I'm making games(well, more like learning how to make games) in unity and recently I was interested in speeding up some calculations by using compute shaders, now I understand some things, it isn't that hard, but it took me some time. Just find a tool that allows you to use GPU and google as much learning materials as you can. Should work And remember that learning by examples is really helpful, so try to copy some simple projects
@jimb123123 жыл бұрын
@@mementomori7160 ... and it's only running on a single core.
@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!
@ewaldlatreider51272 жыл бұрын
Good job mr rooster
@EmmaElite3 жыл бұрын
From a distance and sped up this reminds me of how electricity flows path of least resistance
@deadchannel8233 жыл бұрын
Cool, Imma sub!
@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.
@kyugokato22622 жыл бұрын
This is legit cool
@PillBoxUK3 жыл бұрын
This is pretty cool. Would be interesting to see what would happen if the ants died if they did not eat anything within a specific time.
@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?