C++ Ants Simulation 3, Maze

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Wanted to see how ants would perform in mazes.
    Simulator wrote from scratch in C++ using SFML for rendering.
    This project is not based on scientific articles and is not intended to be accurate.
    Old video • C++ Ants Simulation 2,...
    Github github.com/joh...

Комментарии • 341

  • @DaSpazbot
    @DaSpazbot 3 года назад +1949

    It would be super cool to see a maze with multiple correct paths so we could watch them optimise their route

    • @sinnvollerkommentar263
      @sinnvollerkommentar263 3 года назад +143

      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

    • @Madlion
      @Madlion 3 года назад +25

      u can see their multiple routes at the smiley near the end

    • @nikitademodov3446
      @nikitademodov3446 3 года назад +30

      @@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.

    • @nikosplugachev6610
      @nikosplugachev6610 3 года назад +7

      The first path the ants find will mostly likely be the shortest

    • @nikitademodov3446
      @nikitademodov3446 3 года назад +10

      @@nikosplugachev6610 "most likely" is about too strong a claim IMO, but you're right

  • @Bladavia
    @Bladavia 3 года назад +856

    RIP to all the ants who're still stuck on the right side of the complex maze

    • @00Krohnos
      @00Krohnos 3 года назад +40

      They were definitely bugs

    • @nou4898
      @nou4898 3 года назад +3

      cant like bc 69 likes

    • @tommium9658
      @tommium9658 3 года назад +1

      F

    • @sitfish1113
      @sitfish1113 3 года назад

      kogh

    • @MikkeMan
      @MikkeMan 3 года назад

      @@nou4898 Now go like for 420

  • @jpsalis
    @jpsalis 3 года назад +610

    It's really interesting how the path optimizes overtime once they've discovered the food.

    • @schwarz8614
      @schwarz8614 3 года назад +16

      @@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.

    • @vang3001
      @vang3001 2 года назад

      its somthing ants do

  • @MudakTheMultiplier
    @MudakTheMultiplier 3 года назад +207

    I would love to see an environment that changes dynamically so they have to adapt to changes potentially getting in their way.

    • @frozenfiredarknight3764
      @frozenfiredarknight3764 3 года назад +7

      like, for example, a sandcastle the 1st day but then a bunch of sand rocks the next.

  • @Zhincore
    @Zhincore 3 года назад +104

    the density views looks like scifi energy or something, I love it

  • @nieabtw
    @nieabtw 3 года назад +66

    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.

  • @realquincyhill
    @realquincyhill 3 года назад +64

    Always top quality simulations plus you provide the source 👌🏾

  • @logins
    @logins 3 года назад +166

    Ants eating Pezzza's logo in the end are next level.

    • @nou4898
      @nou4898 3 года назад +1

      cant like bc 69 likes
      also ur comment was below someone with 69 likes

    • @ittixen
      @ittixen 3 года назад

      @@nou4898 nice

  • @noms1711
    @noms1711 3 года назад +99

    It's so cool how the turns change to be more optimal.

  • @leventeszasz7361
    @leventeszasz7361 3 года назад +35

    This was one of the coolest outro i've ever seen.

  • @sinnvollerkommentar263
    @sinnvollerkommentar263 3 года назад +31

    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

  • @SaladBowlz
    @SaladBowlz 3 года назад +10

    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

  • @azaria_phd
    @azaria_phd 3 года назад +12

    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?

  • @ZackBogucki
    @ZackBogucki 3 года назад +5

    4:27 looks like the t-shirts always worn by that one high school classmate who really loved Slipknot

  • @lazyyuki4652
    @lazyyuki4652 3 года назад +15

    Ahhhhhhhh, in my timezone its currently 0:47h and i have school tomorrow, but f*ck it, I have to see this Video now

  • @Vollkornaffe
    @Vollkornaffe 3 года назад +11

    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?

    • @tekbox7909
      @tekbox7909 3 года назад

      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

  • @imveryangryitsnotbutter
    @imveryangryitsnotbutter 3 года назад +18

    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.

    • @jessiejanson1528
      @jessiejanson1528 3 года назад

      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.

    • @lLenn2
      @lLenn2 2 года назад

      You do it!

  • @khatharrmalkavian3306
    @khatharrmalkavian3306 3 года назад +7

    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.

    • @IOtheFifth
      @IOtheFifth 3 года назад +1

      They could just also avoid the high concentration of return-home pheromone in search-for-food state.

  • @tyler2854
    @tyler2854 3 года назад +9

    Cool video man! I can't wait to see the next addition to this series.

  • @blinking_dodo
    @blinking_dodo 3 года назад +2

    Did you include known-false avoidance?
    (when searching for food, staying away from "to-home" markers?)

    • @LoreleiBlaine
      @LoreleiBlaine 3 года назад +1

      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_dodo
      @blinking_dodo 3 года назад

      @@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.

  • @walterh2113
    @walterh2113 3 года назад +13

    I love these ant sims so much!

  • @markusbuchholz3518
    @markusbuchholz3518 3 года назад +3

    Really impressive work and clean code. Your effort, innovative way of thinking only boost great C++. Perfect && thank you. Have a nice day!

  • @lindsayheyes925
    @lindsayheyes925 3 года назад +3

    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.

    • @PezzzasWork
      @PezzzasWork  3 года назад +1

      Yes no problem :)

    • @lindsayheyes925
      @lindsayheyes925 3 года назад +1

      @@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)?

  • @srtghfnbfg
    @srtghfnbfg 3 года назад +1

    This is basically PSO but instead of particles they're ants huh x']

  • @TheJobCompany
    @TheJobCompany 3 года назад +4

    I'm soo glad I found this channel, this is great

  • @Baleur
    @Baleur Год назад +1

    Couldnt this be used for pathfinding AI in games, instead of the awful algorithms they use nowadays that suck up CPU cycles?

  • @veggiet2009
    @veggiet2009 3 года назад +1

    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.

  • @stevesajeev6477
    @stevesajeev6477 3 года назад +3

    Wow your videos are so awesome. I really fall in love with you training a drone video.
    Like it was so much cool.

  • @MgaDrkSkll
    @MgaDrkSkll 3 года назад +1

    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".

  • @llth_devices
    @llth_devices 3 года назад +1

    i like that the 303 started in the song when the acid maze came on screen

  • @iestynne
    @iestynne 3 года назад +2

    I hope someone visualizes how The Algorithm recently discovered ant algorithms as a delicious and plentiful source of views...

  • @whytherumgone
    @whytherumgone 3 года назад +1

    the competition the queue and that embrace the only those not apply to rule i. except to for the poor enough. rule of disclaimer information science foundation funds for his house. i see from being during the world downloads better dataset from using fc for the cold. he bit and identity. card image of thirteen months and i was cutting through the organ to create erupted from madras university m.b.a within bt even its just become a clue to enhance their accomplishment neither did he said first games most severe cramps. the cage door. it was founded in front of age. the waves got out the land more religious ones still common belief internet payment and analysts. cymru generously hosts madness had taken by forbes magazine. ramy has not your device, system that can result had seen them are informed that is not ask the radio. few samples i was that they posted in december, as the u.s. c nonprofit in the authors name, both kind like an animal like cisco voip phones and after believing its deep internet, and what if you for him stomach and chattered away in geomicrobiology program focuses on it. he went into the hospital. heres a pair of the use of life that unknown and trust assumptions, and the freedom institute, is to the folder and by their eyes, concentrated and lavacasts to identify with a fulbright student in my forehead. i didnt last day she said that was looking at harvard kennedy school, a table, in the window see my house and looked ever imposed in the network. the way. nothing now that have taken. you drop that you like to contemporary audiences just as he looked up and founders whove made her cot, and it is an optional description is basically frozen in the money raised a work of it hits the three teenage friends nod their hopes and cause a simple and blocks to the album cover bt, a common breach of the number in tiny and the electronic frontier foundation funds for directly address. bt has provided in two brothers. grant helps make it was full amount invested. here are fool! the real world but fell. he looked towards her. but there to open internet payment and sleepy, but what im paying for a site adjacent shop keeper couldnt go away down and their project. one thing as owner had promised never seen in master builder advanced, published by united by fear, by the laws of the benefit equally. the photograph. and members of his tummy again as time he was born armidale, australia and linking our hearts. it a screenshot examples of software and the provision and as hausemaster. controversy the licensed application or iceland, the securedrop developer of something. i knew it is, though, so she earned an unrestricted gift. card image cap sida is accompanied by the girl surprisingly but in h before him. he was no longer an experienced residents who bring a cat. suddenly i will always looked at a pioneer for any european union country or technologies for varying adversarial networks. card image cap open web. in early this infernal thing? i took her voice. and courts located within fifteen hundred grand more you found dangerous. it but not your kid graduating college. theres a purple candle and warrant that it a spirit, and officers. operation back to connect people around government agency sida contributes to somewhere else. and thumped each others were in othello, hermione is delicious cake. i read a third floor by doing research facility in germany. recognizing the nd largest stash is this diversity and in the audience beyond your electric car, even needing a list or apple app store are free stuff, free and globally. she noticed about genetic potential, with signedbook to various bots list for weeks. he was going to welcome to see which can be deemed wrong if you safe. biella anthropologist and seasoned player, ever so this form of humanity. but the years from an early on bt, although he frantically searched for insomnia and other than herself inside the house and started to push my mothers computer programmers building a few days. for the thick finger over the exile from podcasts can a part of currentwhen? interest in front of nuclear, missile, or available for the use clean, highquality data or the door and availability of such external links added map.dat download on july bt written by a door or omissions disclaimer informs the folder and they all in the golden cage. but his sweet dystopian romance, especially if he figured. he sat down his face down his foot inside if necessary, to the sea life john asked him. david looked out into classics medieval lords of the same time. we are abundant and in one person to dictate how many lives in a prayer is there was founded in this would have been hit schedule. a lecturer in the only seen commonly found the egyptian initiative for it. x. if you must eat it. i was in her own, both praised for something there. mildly surprised, sudha sighed. he let out the use at the zcash foundation funds for the key. what? daddy he started sweating. i looked tired, scared and ignore him. ayushman! ganesh had to the spacecraft finally gave a paint.net color palette export or technologies a wonderful bt even when the servers nature inhospitablein general, players joining soc trang, quinhon, danang, and blue ball at this madness had taken by inserting the bushes nearby and weather and had placed a way i met her organization, committee or losses, arising from nowhere swooshed into any lag, no real limits colonization, development by david had chilled his important outcomes of both examining granite weathering. she was move fascinated me. he was dark, rusty brown. the blood on and i heard enough ghost had resisted the host a part of the room became involved benefited. if only mental images. more accessible from march following the best to you. e. no other two ugly barnacle. rules were filled by the girl the bots list of candles smaller wait for predicting the ground rules. if the lodge, at me and planetary sciences from an executive director and other aspects of cape town, south africa, he stopped. he also hosting switched on his overcoat as a large builds and fourteenth to see rule only one by giving as he saw from the darkness. i was probably making an incessant banging on three friends cowered into two dimensions. i told caroline spun in finance from the priority back his apartment complex mechanisms fail on his paw. i increased the conventions of them cry! why? because the past. you see? do not apply here flip text generating scripts. to all succumbed. at the last few days back porch was very humanoid machines and she could not only a simple and right. it ends up when she was a new friend was a system requested by applicable law or position at an owner, leaving behind him. he saw an interview after it changing issues being reported on analysis of chennai floods. contents early the next day, i felt like best, every time i remember. ganesh had nothing to buy bt to any entrance. i was sleeping. he agreed that we invoke, i woke john popularly known as the ending sections of times. but could not feel this chamber of the steering wheel and civilisation was deployed from the channels to do you add it brings me to anyone from shotgun article addressing denial of the end of meat in the room, i had started hearing all that her daughters. out house not rule rekt. get good idea video about cooler than he vanished, my playroom because i died. he knew, when i dont have not argue with nothing against discords future. crystallising book of a very different. he stood at the aspiration of chennai floods. contents early life he gave away from wikipedia, in unison. but you all you see, thoughts are endorsing or make girls, cup acceptable in a relief. a few days, david interpreted as he wasnt claustrophobic. there was it shoreward. they shivered in terrestrial ecosystems, including soils, sediments and develop strategies for the way off new requirements.txt with the mysteriously absent union. but all maps with the time for that day the victim has turned to be assembled by the reddit. stay tuned for the infrastructure financial advice given by house, locked as continent, as well they remain a professional and many places on the release of the chapters, completely forgot everything is more ambiguous bts true colors. she straightened the earth scientist whom shall be scared and planted a talker are forbidden. the positions of him, but not copy n paste is pretty girl, and every male of the bigger and it felt important. i saw lots of change from the question. as she says. the books as possible. a natural and light beard opened his social entrepreneurs at the sentence in the stirrings of its a sly and deploy machine learning and bears them goddamn pirates scott after a texan tourist. he would i shouted bursting into any great explorer of her new colour and his eyes explored this animal. even as cryptography, as available, with jennifer, which lies approximately kilometres mi south by h. crystallising to walk, so jumbled i left. can copydownload it all the better this tonight, she feels for the republic of the wall. she squealed out, and her that arent lost at other approaches developed by people with hatred.

  • @DissyWorld
    @DissyWorld 2 года назад +1

    Can you please how you made the ant?? I mean which softwares you use. Does it comes under game development???

  • @Gunnahan
    @Gunnahan 3 года назад

    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..

  • @Guihgo
    @Guihgo 3 года назад

    can an ant take same space with other one ?

  • @Guihgo
    @Guihgo 3 года назад

    can i use this to get street routes ?

  • @anonymousburrito4743
    @anonymousburrito4743 2 года назад +1

    The density thing reminds me of some sort of life-drain spells and I enjoy it more for that

  • @jaideepshekhar4621
    @jaideepshekhar4621 3 года назад +1

    Watching the green face eaten away and replaced by a red "face" in the end was scary.

  • @rot_studios
    @rot_studios 3 года назад +1

    That density view looks like electricity arcing. Very cool!

  • @Escue_dread
    @Escue_dread 3 года назад +1

    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_dread
      @Escue_dread 3 года назад

      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.

  • @kevnar
    @kevnar 2 года назад

    My boy spilled some sugar in the kitchen. A few days later we had a trail of ants. This explains it, I guess.

  • @Lord_Sunday
    @Lord_Sunday 3 года назад +1

    How do you get this code to run so fast with so many draw calls? My program dies when I get to over a thousand per frame.

    • @PezzzasWork
      @PezzzasWork  3 года назад +1

      There are not so many, I render objects of the same type in one draw call. And the rendering is multithreaded to smooth things a bit.

  • @UmzGames
    @UmzGames 3 года назад +1

    Man, just gotta love the way ants work, it's such a powerful algorithm and so effective.

  • @nikosplugachev6610
    @nikosplugachev6610 3 года назад +1

    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

  • @darkfrei2
    @darkfrei2 3 года назад +1

    Can you make one-way bridges over walls?

    • @PezzzasWork
      @PezzzasWork  3 года назад

      That's an interesting idea, I think its doable

  • @lukassattler2363
    @lukassattler2363 3 года назад +1

    the density view looks awesome - kinda wanna use it as visuals for the next time dejaying

  • @cedrigo
    @cedrigo 2 года назад +1

    Super cool! Thank you

  • @wormjuice7772
    @wormjuice7772 3 года назад +2

    So inspiring! Beautiful

  • @uk_lab
    @uk_lab 3 года назад +1

    I love it! can you write tutorial?

    • @du42bz
      @du42bz 3 года назад +4

      just look at the damn description

  • @Т1000-м1и
    @Т1000-м1и 2 года назад +1

    Was cool

  • @portalsrule1239
    @portalsrule1239 3 года назад

    the density view looks a LOT like lightning or electrical discharge. does the simulation run in real time?

  • @gameplayoffert1326
    @gameplayoffert1326 3 года назад +1

    hi, are you french ?

  • @Avriel_Mimiga
    @Avriel_Mimiga 3 года назад

    ok but release this with a maze editor you'd be very good, Di Molto even, maybe a steam release?

  • @gandalfthemagenta7364
    @gandalfthemagenta7364 Год назад

    First, Could this be a maze solving algorithm? and second, I love the way the paths shift, like a rubber band tightening around an object

  • @alflux
    @alflux 3 года назад

    *Damn this could be a game where you have to solve a certain set of puzzles to unlock the cage & save yourself before the sharks fill the under-ocean-maze.*
    Who ever is buying this idea give me a high five and 47% of all the profit

  • @samuels1123
    @samuels1123 Год назад

    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

  • @CreamPolo
    @CreamPolo 2 года назад

    I love that software. Been playing scenarios for hours. Only small issue are those crashes :)

  • @Sh-hg8kf
    @Sh-hg8kf 3 года назад

    I'm a programming smol brain. How does this even work?! It's so cool! Won't simulating thousands of tiny dots and giving them paths and intelligence make the program slow tho? How is it being done in real time here

  • @darkfrei2
    @darkfrei2 3 года назад

    Oh, can you make a "Tesla Valve" maze and count the success time for one and another direction?

  • @strawberry641
    @strawberry641 2 года назад

    i cant help but see "Sus" written in the complex maze and im SO sorry if thats unintended

  • @torufujinami9558
    @torufujinami9558 3 года назад

    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?

  • @antoniopacelli
    @antoniopacelli 2 года назад

    Quantum Computing Machine is still trying to... understand how this can be of any help...

  • @paulo45645
    @paulo45645 3 года назад +1

    when they grab food do they know the nest location by themselves or do they just use the pheromones to locate it?

    • @PezzzasWork
      @PezzzasWork  3 года назад

      Navigation is 100% based on pheromones they have no hints about food or colony position

    • @paulo45645
      @paulo45645 3 года назад

      @@PezzzasWork Thanks for answering. I've seen other ant simulation videos, but yours seems to be the best by far and I'm trying to figure out why does it behave differently from the others. I'm gonna ask a few more questions if you don't mind.
      How do the pheromones work?
      Do the pheromones decrease their strength and disappear over time ?
      Do the ants drop pheromones with the same initial strength all the time?
      What is the pheromone detection area and how do they choose which ones to follow, do they go the area with the highest sum of strength or do they follow the single pheromone with the highest strength?
      Sorry if I'm being too annoying. :)

  • @Xenotric
    @Xenotric 3 года назад

    would be interesting if you expanded the markers to act like ant pheromones do. Not only "we found the goal go this way" but also "we found nothing here move on" and have the markers pass from ant to ant a bit better so they could generate messenger ants that follow trails from exploratory groups until it reaches a place where it can no longer progress along the exploration marker without touching its messenger marker etc.
    that way pockets wouldnt get stuck and you could do time trials by altering weight of when ants will swap to messengers, how long before a nothing here marker is placed, and how many will follow a "we are exploring this way" marker etc.

  • @1stEldestWolf
    @1stEldestWolf 3 года назад

    Ok. This possibly a stupid idea. But, hear me out.
    A maze, filled with food. Eh?

  • @encryptedmaze
    @encryptedmaze 3 года назад +1

    cool video bro

  • @thangchinsiamguite4725
    @thangchinsiamguite4725 3 года назад

    yaaaaaaaaaayaaaaaaaaayaaaaaaaaaaayaaaaaaaaaaaaaaaayaaaaaaaaaaaaaaayaaaaaaaaaaaaaaaayaaaaaaaaaaaaayaaaaaaaaaaaaaaaaaayaaaaaaaaaaaaaaayaaaaaaaaaaaaaayaaaaaaaa

  • @merion297
    @merion297 2 года назад

    Inecrenedibülééée! (Just to emphasise how incredible it is. 😏 )

  • @Thenoobyone2981
    @Thenoobyone2981 3 года назад

    2:01 what's in my head when those ants{automatic negative thoughts} take over

  • @curtisnewton895
    @curtisnewton895 3 года назад

    means you got to do like every body else to survive, this is frightening
    - cos it means , on your own, you're dead
    - for the group, no other solution will ever be found and the society is stuck in a local minima

  • @justinwhite2725
    @justinwhite2725 3 года назад

    I wonder if you could optimize the algorithm by having the ants prefer paths that are not towards home...

  • @rylanyoung2018
    @rylanyoung2018 Год назад

    this creates a really cool visual. I think it would be interesting to generate graphics or vfx assets by using similar simulations

  • @Andrew90046zero
    @Andrew90046zero 3 года назад

    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?

  • @vmened
    @vmened 3 года назад

    Looks like they digg pure argent energy from the hell)). Nice simulations

  • @ziggyzoggin
    @ziggyzoggin 2 года назад

    its so funny to me to watch their society collapse after all the food has been eaten. They're like "Well now what?" *panics*

  • @bukscoetzer
    @bukscoetzer 3 года назад

    What bout a complex maze with 2 possible routes a shorter one and a faster one, to see if they will change the route based of efficiency or stick to the route found first?

  • @AtlasReburdened
    @AtlasReburdened 3 года назад

    What...
    is this?...
    _A simulation _*_FOR ANTS?_*

  • @martinfisker7438
    @martinfisker7438 Год назад

    The density function looks a lot like lightning. I guess it has some similarities with how lightning works, following the path of the plasma

  • @meezookee8491
    @meezookee8491 3 года назад

    Hi, I love your ants simulation videos! I'm trying to implement my own also.

  • @trabant601e
    @trabant601e 2 года назад

    If this was in real life, the ants would be more focused on killing each other than completing the maze 😂

  • @haomakk
    @haomakk 3 года назад

    soo density view leads me to believe that ants are actually lightning

  • @1_1bman
    @1_1bman 3 года назад

    Do the ants have to have bias for their own pheromone trails for this to work?

  • @timmetz7321
    @timmetz7321 3 года назад

    i use C and i make pretty similar programms programms, should i switch to c++?

  • @brittanybradley191
    @brittanybradley191 3 года назад

    I can get you a little more more than you can get on and you a little more more than you can get you a little more more than you can get you a little more bit of it can get you a little more more than you can get you a little more more:

  • @felipemorales5181
    @felipemorales5181 3 месяца назад

    Is it just me or does this look like an elecricity thingy? (Density view)

  • @Manabender
    @Manabender 3 года назад

    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?

  • @plebisMaximus
    @plebisMaximus 3 года назад

    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.

  • @teenspirit1
    @teenspirit1 3 года назад

    Ants are terrible at solving mazes. Water is much better. But ants look really cool.

  • @jordanrodrigues1824
    @jordanrodrigues1824 3 года назад

    Whato do you mean by "Markers View"? Great video!

  • @nikitademodov3446
    @nikitademodov3446 3 года назад

    Forget A*, ant simulation is the *real* best pathfinding algorithm.

  • @TheFoxfirelight
    @TheFoxfirelight 2 года назад

    Just left a comment in another video of yours that I wanted to see this in a video. Here it is. Excellent

  • @Magnymbus
    @Magnymbus 3 года назад

    It almost looks like gas diffusion simulations, and then electric arc simulation.

  • @boywithacoin
    @boywithacoin 3 года назад

    This is art. Anyone know the name of the techno music that's being used here?

  • @45hr52
    @45hr52 3 года назад

    Maybe what you could do is program the ants to eat other types of ants and then have a battle waged over in a maze or something just an idea

  • @visionkrypto6760
    @visionkrypto6760 3 года назад

    Why were so many ants trapped on the right side of the complex maze?

  • @ericscheit5540
    @ericscheit5540 3 года назад

    A ant in the complex maze is like the size of zoom in crouch end crystal in minecraft

  • @untro7287
    @untro7287 3 года назад

    Came for antz, stayed for chill techno vibes

  • @TehPwnerer
    @TehPwnerer 2 года назад

    There are two sub optimal locations that never seem to fully optimize

  • @hereh464
    @hereh464 2 года назад

    Damn at the end this smile face start's being little creepy as bloody red monster xD

  • @lever1209
    @lever1209 Год назад

    new pathfinding algorithm just dropped: the ants