It would be super cool to see a maze with multiple correct paths so we could watch them optimise their route
@sinnvollerkommentar2633 жыл бұрын
I don't think they will. If the ants only find one way they will only follow it careless if there's a better one they haven't discovered. If they find 2 at the same time they will use the shorter one because there will be more pheromones because the ants don't Have to walk that fast to spray them out
@Madlion3 жыл бұрын
u can see their multiple routes at the smiley near the end
@nikitademodov34463 жыл бұрын
@@sinnvollerkommentar263 I mostly agree with you(btw hello German m8), although there is a chance that they will be able to optimise their path, if many ants decide to be "adventurous". Albeit this chance is very low.
@nikosplugachev66103 жыл бұрын
The first path the ants find will mostly likely be the shortest
@nikitademodov34463 жыл бұрын
@@nikosplugachev6610 "most likely" is about too strong a claim IMO, but you're right
@jpsalis3 жыл бұрын
It's really interesting how the path optimizes overtime once they've discovered the food.
@schwarz86143 жыл бұрын
@@smilingx4-189 the best trajectory changes with how high the objects velocity, mass etc. is. The path the ants take will most like not be the best path for anything else besides them.
@vang30013 жыл бұрын
its somthing ants do
@Bladavia3 жыл бұрын
RIP to all the ants who're still stuck on the right side of the complex maze
@00Krohnos3 жыл бұрын
They were definitely bugs
@nou48983 жыл бұрын
cant like bc 69 likes
@tommium96583 жыл бұрын
F
@sitfish11133 жыл бұрын
kogh
@MikkeMan3 жыл бұрын
@@nou4898 Now go like for 420
@MudakTheMultiplier3 жыл бұрын
I would love to see an environment that changes dynamically so they have to adapt to changes potentially getting in their way.
@frozenfiredarknight37643 жыл бұрын
like, for example, a sandcastle the 1st day but then a bunch of sand rocks the next.
@Zhincore3 жыл бұрын
the density views looks like scifi energy or something, I love it
@itsmedmitrii9362 Жыл бұрын
I thought I was the only one
@DigitalHandle Жыл бұрын
Agreed!
@nieabtw3 жыл бұрын
I'm finally early on one of your videos, fantastic work. It's fascinating to watch them go from a scattered mess to a perfectly organized and optimized path.
@logins3 жыл бұрын
Ants eating Pezzza's logo in the end are next level.
@nou48983 жыл бұрын
cant like bc 69 likes also ur comment was below someone with 69 likes
@ittixen3 жыл бұрын
@@nou4898 nice
@noms17113 жыл бұрын
It's so cool how the turns change to be more optimal.
@realquincyhill3 жыл бұрын
Always top quality simulations plus you provide the source 👌🏾
@leventeszasz73613 жыл бұрын
This was one of the coolest outro i've ever seen.
@SaladBowlz3 жыл бұрын
Not gonna lie. I have no idea how i ended up finding your videos, but youtube has been drip-feeding me your ant simulations and its been a blast to watch. The slime molds were wild too. thanks
@ZackBogucki3 жыл бұрын
4:27 looks like the t-shirts always worn by that one high school classmate who really loved Slipknot
@tyler28543 жыл бұрын
Cool video man! I can't wait to see the next addition to this series.
@imveryangryitsnotbutter3 жыл бұрын
So one thing I've noticed is that when ants get stuck in limbo (usually explorers from before the food path is established), it can take them a really long time for them to eventually return to the path, if they ever return at all before the food supply runs out. These ants in limbo are essentially wasting the colony's resources while they continue to exist; because the number of ants on-screen is fixed, ants in limbo effectively lower the number of ants that can contribute to bringing back food. I propose that you give each ant a "life timer" which dictates how long they can survive outside the colony. You set the timer based on how long it should realistically take to find a food source. At the start, several thousand ants are spawned from the colony, one per millisecond (don't spawn them all simultaneously, otherwise large amounts of ants will die simultaneously, which looks really weird). If an ant's life timer expires, it dies and a new one spawns at the colony. If an ant picks up a food morsel, its life timer is completely refilled. If an ant delivers food back to the colony, its life timer is also completely refilled. In other words, only the ants that most effectively contribute to the colony survive, while the stragglers eventually die off. Maybe later on, you can probably implement some kind of birth-death system so that the number of ants fluctuates based on how plentiful or scarce food is, but for now I think the "life timer" mechanic is a good first step.
@jessiejanson15283 жыл бұрын
Ants actually leave a trail as they leave the nest so they can follow it back home later. im not entirely sure, but i suspect they go home eventually, but maybe they stay out until they find food or die... when they find food they leave a different trail while following the trail back to their home. this is so that other ants can find the food. in real world situations, its not just one big block of food and the ants are always looking for more food. that is to say them still looking for food is a good thing, if they died too quickly they never would have made it out of the maze and all ants follow the same set of rules.
@lLenn22 жыл бұрын
You do it!
@TheJobCompany3 жыл бұрын
I'm soo glad I found this channel, this is great
@walterh21133 жыл бұрын
I love these ant sims so much!
@stevesajeev64773 жыл бұрын
Wow your videos are so awesome. I really fall in love with you training a drone video. Like it was so much cool.
@markusbuchholz35183 жыл бұрын
Really impressive work and clean code. Your effort, innovative way of thinking only boost great C++. Perfect && thank you. Have a nice day!
@sinnvollerkommentar2633 жыл бұрын
Great work Again Also that you wrote an algorithm to turn your image into food. It's so little details that show how much work you put into it
@Vollkornaffe3 жыл бұрын
The end screen reminded me of one of these plasma globes! Come to think of it, this would probably also work well in 3D, right?
@tekbox79093 жыл бұрын
It should but its most likely not as nice to watch and also a bit more complicated to implement (Not much more though). Though I'm not onehundred percent sure on that
@azaria_phd3 жыл бұрын
Like because you never cut the ants eating the "thanks" screen until they are done with it. It'll be interesting to see what you come next? Maybe two tribes of ants competing with each other? Maybe ants can die if they don't find food soon enough, so we see where there are "traps" for ants?
@TheFoxfirelight2 жыл бұрын
Just left a comment in another video of yours that I wanted to see this in a video. Here it is. Excellent
@MgaDrkSkll3 жыл бұрын
uh guys. Why does the complex maze path say "sus"? If you cant see it, its more obvious at 3:34, look at the top half of the maze, and in the center it says "Sus".
@justinlua48483 жыл бұрын
No way I found this project earlier today and get to watch a new video on the same day. This project is inspiring to me
@UmzGames3 жыл бұрын
Man, just gotta love the way ants work, it's such a powerful algorithm and so effective.
@FullmetalAngyl2 жыл бұрын
Your ants look like real live brine shrimp swimming about. I love it! These videos are amazingly satisfying!
@Escue_dread3 жыл бұрын
i wonder what would happen if you treated it kinda like snake, you have one scorce of food and when it is depleted another source randomly pops up. I can think of 3 possible results: 1- they set up a form of pseudo base that acts as a middle man from a depleted source to a new one, it would slowly be optimized and the pseudo base wouldn’t be there anymore. 2- once a source is depleted they revert back to looking for new food and they completely forget about the old location 3- the most probable outcome is a mix of these two that depends on what any finds it first. if it was an ant that was at the old source when it depleted and started looking for a new source then the pseudo base might appear, and if te ant was just a stray wonderer then the 2nd result may happen.
@Escue_dread3 жыл бұрын
Another idea i think would be cool is a sort of “Respect score” where each ant has a respect score. each time an ant takes one peice of food to the base they gain one point. The more points an ant has the more likely other ants are to follow them. And yes, i understand the problems with coding this due to having so many ants all being treated uniquely so its a complete hypothetical.
@nikosplugachev66103 жыл бұрын
Really cool how these ants are in essence performing BFS. It's also quite interesting how they optimize their path, like in the simple maze
@rot_studios3 жыл бұрын
That density view looks like electricity arcing. Very cool!
@khatharrmalkavian33063 жыл бұрын
I think you may get better initial dispersal if you add a behavior to cause explorers to steer away from each other slightly, boids-like. Possibly they could steer toward nearby collector/returners as well. I haven't actually looked at your code, though, so I don't even know if their states are discrete, lol.
@IOtheFifth3 жыл бұрын
They could just also avoid the high concentration of return-home pheromone in search-for-food state.
@samyakgupta43013 жыл бұрын
This video is about to blow up! Really cool.
@sergodobro25693 жыл бұрын
Currently this is the best ant algorithm video, at least because you show us markers!
@llth_devices3 жыл бұрын
i like that the 303 started in the song when the acid maze came on screen
@grapedfruit97923 жыл бұрын
Was watching the other ant videos this morning thinking about how they would be in a maze. Very cool
@Guihgo3 жыл бұрын
can i use this to get street routes ?
@ThatNerdGuy03 жыл бұрын
everybody gangsta till the ants turn into an energy beam
@AllStuffofWonder_YT11 ай бұрын
1:07 this is like a hose spraying on mud so satisfying
@anonymousburrito47432 жыл бұрын
The density thing reminds me of some sort of life-drain spells and I enjoy it more for that
@Guihgo3 жыл бұрын
can an ant take same space with other one ?
@lindsayheyes9253 жыл бұрын
Thank you for this, it's an outstanding demonstration. I am planning an exhibition about mazes and would like to feature this video with your permission.
@PezzzasWork3 жыл бұрын
Yes no problem :)
@lindsayheyes9253 жыл бұрын
@@PezzzasWork Many thanks, this is beautiful work and I really appreciate it. Do you have a demonstration of Flood and Backtrack (the Lee-Moore Algorithm)?
@wormjuice77723 жыл бұрын
So inspiring! Beautiful
@lazyyuki46523 жыл бұрын
Ahhhhhhhh, in my timezone its currently 0:47h and i have school tomorrow, but f*ck it, I have to see this Video now
@Dirk_Berserk3 жыл бұрын
that's really cool how the line becomes more efficient
@insertname93052 жыл бұрын
the density view really mimics an electric current, really cool
@relativepi50463 жыл бұрын
This stuff is fascinating! I would love to see how they would behave with things like, maybe, desserts that can only be gathered as food after the other 'main' food supply is depleted, or even having a simple checkpoint (or two!) that they would need to hit before the path to the food is open. Of course, it entirely depends on how things are set up, and I am super happy to see this done as it is already.
@mertulas59673 жыл бұрын
U r amazing bro, I love your works, congratulations
@nikitademodov34463 жыл бұрын
Forget A*, ant simulation is the *real* best pathfinding algorithm.
@lukassattler23633 жыл бұрын
the density view looks awesome - kinda wanna use it as visuals for the next time dejaying
@kevnar2 жыл бұрын
My boy spilled some sugar in the kitchen. A few days later we had a trail of ants. This explains it, I guess.
@blinking_dodo3 жыл бұрын
Did you include known-false avoidance? (when searching for food, staying away from "to-home" markers?)
@LoreleiBlaine3 жыл бұрын
i was just about to make a comment like this! i didn't know the name, but i was thinking that they'd probably explore and find food much faster if ants followed signs of "no home pheromones" towards places other ants thereforr havent explored recently/thoroughly
@blinking_dodo3 жыл бұрын
@@LoreleiBlaine a simple case of eliminating places to search that are known to be empty. Would like to see side-by-side comparison with the current system.
@Zalied2 жыл бұрын
what i find interesting is the path tightening looks so much like a string that was weaved through the maze and pulled tight
@jaideepshekhar46213 жыл бұрын
Watching the green face eaten away and replaced by a red "face" in the end was scary.
@Gunnahan3 жыл бұрын
just thinking... in the circular maze at the end there was still quite some activity in the upper right quadrant of the maze.. those are old ants that never find their way out of that part of the maze? interesting phenomenon.. and having watched all of your ant simulations i had the idea this would be recreatable as an experiment.. i don't know how "cruel" it would be to build the same maze and put 2000 ants in there with a block of sugar at the other end (or something nutritious for them, excuse my ignorance) i remember watching an ant-otaku some time ago that would be an ideal partner for that kind of experiment ^^ thanks for sharing your ideas.. your vids motivate me to pick up a long-neglected skill: programming..
@Nixxen3 жыл бұрын
This is so oddly satisfying to watch!
@rylanyoung2018 Жыл бұрын
this creates a really cool visual. I think it would be interesting to generate graphics or vfx assets by using similar simulations
@plebisMaximus3 жыл бұрын
This is basically the monkey typewriter thing. You slip out a huge amount of ants and eventually one will solve the maze, then the rest fall in line. Super cool stuff.
@veggiet20093 жыл бұрын
You cool make some cool looking lightning with this, considering that the ants act something like negative particles, and the food like positive particles, then run the simulation take the density view and the speed up the frames to the speed of lightning.... you might have to change the finding function after the food has been found and or depleted, to then make the lightning end correctly.
@megamasterblogs3 жыл бұрын
This is amazing, ever since I saw your video Im trying to implement this algorithm on mi own.
@DavidZMediaisAwesome3 жыл бұрын
the density view looks so cool
@gx33053 жыл бұрын
the density view was sick. watching the exploration without any speed multiplier was way cool though.
@Sincuttiere Жыл бұрын
I love the "Density View"!
@marekzyla16592 жыл бұрын
that is just what i wanted to see when i saw the part 2
@vmened3 жыл бұрын
Looks like they digg pure argent energy from the hell)). Nice simulations
@mementomori71603 жыл бұрын
That... ...was beautiful(the density view)
@zkll50523 жыл бұрын
the density view of the complex maze would be a pretty dope electric effect
@sfsinfinity58622 жыл бұрын
3:42 what is this? Plasma?
@ravinrabits48583 жыл бұрын
I like how they straighten into a line when they receive path nodes.
@timur52413 жыл бұрын
Density view looks so cool
@slobakia32033 жыл бұрын
Nice channel bro. Keep it up 👍
@Thenoobyone29813 жыл бұрын
2:01 what's in my head when those ants{automatic negative thoughts} take over
@krysmun3 жыл бұрын
you can see the moment the first ant makes it home with the food, the trails are alteady set, and then everyone else starts to follow the trail and it solidifies.
@DissyWorld2 жыл бұрын
Can you please how you made the ant?? I mean which softwares you use. Does it comes under game development???
@codyball33293 жыл бұрын
The amount of communication between ants is insane
@maximplyashchenko56103 жыл бұрын
Does anyone know the name of the track at 1:52?
@TheCommanderFluffy3 жыл бұрын
I look forward to these, it got me started in coding.
@georgplaz3 жыл бұрын
I especially loved the part with the simulated ants
@Jellyjam14blas3 жыл бұрын
*Pezzza you're a legend =D*
@untro72873 жыл бұрын
Came for antz, stayed for chill techno vibes
@cedrigo2 жыл бұрын
Super cool! Thank you
@lexihaley28873 жыл бұрын
This was fascinating; thank you
@jatinsaini77903 жыл бұрын
Your work is very inspiring 👏👍
@wablabwerwr Жыл бұрын
2:29 this is what a vaccum cleaner looks like when sucking up dust
@Andy-vp7vl3 жыл бұрын
Very cool stuff! Please, could you make an ant war ? Also, I love your outro
@samuels11232 жыл бұрын
Though unrealistic, a 3D environment would be interesting Another few things to try: forces, a barrier that slides slowly, a wind blowing the pheromone northwest, designated 'explorer' ants that ignore paths to develop new ones
@musclechicken90362 жыл бұрын
That outro was sick
@richtigmann13 жыл бұрын
This is pretty amazing
@koro10963 жыл бұрын
Basically ants are masters of optimization.
@nolanbie36643 жыл бұрын
That last little bit looks a lot like those universe maps it’s cool
@CreamPolo2 жыл бұрын
I love that software. Been playing scenarios for hours. Only small issue are those crashes :)
@nikolatasev49483 жыл бұрын
The ending was sooo good.
@iestynne3 жыл бұрын
I hope someone visualizes how The Algorithm recently discovered ant algorithms as a delicious and plentiful source of views...
@user-qp7td6ov5v3 жыл бұрын
Literally every ant in a 5 mile radius when food gets dropped
@feintha3 жыл бұрын
The density view could probably make a good lightning effect for a game
@torufujinami95583 жыл бұрын
If you make 2 paths to the food, I wonder what will happen. For example, one path is shorter but with a lot of branches. And other path is longer but straight forward. Will the ants choose 1 path over the other? Or will the ants take both path but at different distribution?
@rupand18532 жыл бұрын
They make the perfect racing line 😊
@Andrew90046zero3 жыл бұрын
You said in the description that you use SFML. I don't have a lot of experience with various free graphics (or rendering, if that is the right term) libraries out there. But I know a few different ones. But I wanted to ask if you have had any experience with SDL2? And if so, do you prefer SFML? Or does each library have their own niches?
@ericscheit55403 жыл бұрын
The simple maze with markers view is just like a plague
@Manabender3 жыл бұрын
I'd like to see a simulation where the ants are enclosed in a large area completely filled with food, with the home in a corner (and the immediate area around it empty). I think it would be interesting to see how the ants harvest such a massive resource supply. Will they reliably find the closest bit of food, thus creating a growing radius devoid of further food? Or will they dig into the supply in a single direction and carve out a linear tunnel, changing direction only when that tunnel reaches the far wall? Or something in between?
@strawberry6412 жыл бұрын
i cant help but see "Sus" written in the complex maze and im SO sorry if thats unintended
@brandonstevens68863 жыл бұрын
0:49 I was just about to ask the difference between this and a genetic algorithm, and then BOOM