Тёмный

C++ Ants Simulation 4, Colony 

Pezzza's Work
Подписаться 139 тыс.
Просмотров 287 тыс.
50% 1

Colony now uses food to create new ants and expand.
Github github.com/johnBuffer/AntSimu...
Music used • Stay Home #17

Наука

Опубликовано:

 

20 май 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 287   
@SebastianLague
@SebastianLague 3 года назад
Really cool to see you taking this even further. It's looking awesome!
@devsauce
@devsauce 3 года назад
Thanks for sharing link to this channel in one of your videos
@nikitademodov3446
@nikitademodov3446 3 года назад
Didn't think you'd know Pezza, small world.
@PezzzasWork
@PezzzasWork 3 года назад
Thank you :D
@ariseyhun2085
@ariseyhun2085 3 года назад
I'm looking forward to the shaders tutorial @Sebastian Lague :)
@Sciencedoneright
@Sciencedoneright 3 года назад
Hey seb
@dandymcgee
@dandymcgee 3 года назад
If this were 1999, I would ask how to make this my screensaver.
@veggiet2009
@veggiet2009 3 года назад
Why can't we bring screensavers like this back?
@KennethHartsell
@KennethHartsell 3 года назад
If this were today I would ask how to make this my screensaver.
@elFulberto
@elFulberto 3 года назад
@@KennethHartsell what a shame it isn't...
@shakisyaboi991
@shakisyaboi991 3 года назад
lol
@Psychx_
@Psychx_ 3 года назад
"Fog of war"… What's next - "Age of antpires?" Great work!!
@swift_goose
@swift_goose Год назад
Underrated comment
@duzinsan7330
@duzinsan7330 3 года назад
When the population of ants increases too much, some groups leave the main center and nest elsewhere. Over time, these ants differentiate and even become enemies with the original colony. It would be nice if you add this situation to your software.
@TreeFrogOnATree
@TreeFrogOnATree 3 года назад
ant life is brutal yo
@iamuss76
@iamuss76 3 года назад
Cold War
@ytivarg5371
@ytivarg5371 3 года назад
I thought something similar too. Opposing colonies would be a great next step. Also delegating different jobs for the ants
@All_Natural_Soda
@All_Natural_Soda 3 года назад
That’s unrealistic, colony ants stick together forever. He can just have a whole other colony that could be an enemy.
@tissuepaper9962
@tissuepaper9962 3 года назад
@@All_Natural_Soda I think ants can swarm the same way bees swarm, so I think you're wrong about them being in the same colony forever. How would new colonies be created in the first place?
@kuwertzel8938
@kuwertzel8938 3 года назад
Some ideas that just came to my mind: - Procedural maps for the ants to explore - Different types of ants, (workers, fighters, queen etc.) - Different colonies somehow competing (for food etc.) - Collision of ants, so that there could be jams at busy junctions
@dswonderchild
@dswonderchild 3 года назад
genius
@Reloecc
@Reloecc 3 года назад
Ants do not collide or jam really.. they just walk over themself..
@kuwertzel8938
@kuwertzel8938 3 года назад
@@Reloecc Fair enough^^ Maybe they should just slow down a bit in dense areas
@waffle8364
@waffle8364 3 месяца назад
sounds like Sim Ant. I'm on bored with it!
@waffle8364
@waffle8364 3 месяца назад
​@kuwertzel8938 this actually does happen cause they also have a chance to "shake hands"
@angrywolfjr7164
@angrywolfjr7164 3 года назад
let's go my favorite series, i wanna make this one day so bad
@Wizarth
@Wizarth 3 года назад
I'm always impressed at just how effective random walking is at exploring spaces, and the random variation on following the return path causes optimization.
@LouisHollobon
@LouisHollobon 3 года назад
This would be so cool as a screensaver. Watching the ants explore.
@nak_attak
@nak_attak 3 года назад
exactly what i was thinking
@spoonerismstuff
@spoonerismstuff 3 года назад
It’s all I’m think about now
@terencehill1778
@terencehill1778 3 года назад
Yesssssss
@davidgustavsson4000
@davidgustavsson4000 3 года назад
It would be a pretty bad screensaver, since parts of it are basically constantly lit up. Not that anyone uses CRT monitors anymore, but if you are to have a screensaver it should be effective.
@dairop3220
@dairop3220 2 года назад
@@davidgustavsson4000 Well some screensavers implemented by microsoft aren't really saving anything so they are probably here just to make some pretty animations :)
@lennytriem1942
@lennytriem1942 3 года назад
Yessssssssss I absolutely love these and this is crazy seeing another one came out 2 minutes ago! I love your work so much, thank you so much for posting such interesting content!!!!!
@nikitademodov3446
@nikitademodov3446 3 года назад
I found you when you posted the first Ants Simulation. So glad I did -- this series is awesome!
@terencehill1778
@terencehill1778 3 года назад
Mate, your work is AWESOME. Pleasepleasepleaseplease make either a really long video, or a playlist that is hundreds of videos long. Make it anything...I just want to throw it on in the background and let it run ❤❤❤ Beautiful to watch.
@kuwertzel8938
@kuwertzel8938 3 года назад
ooh, next up: procedural ant world generation!
@terencehill1778
@terencehill1778 3 года назад
@@kuwertzel8938 I like the sound of THAT ❤
@bananaknox3861
@bananaknox3861 Год назад
When the ants are started, they look like a sun supernova and start grabbing food with those paths, its very satisfying
@qgamer2266
@qgamer2266 3 года назад
Wow, the ant playing a real time strategy game with fog of war 😂👍 Really love your videos!
@caseymcvay4727
@caseymcvay4727 3 года назад
are you planning on eventually including competitive colonies?
@PezzzasWork
@PezzzasWork 3 года назад
I am thinking about it, it will require some work :)
@caseymcvay4727
@caseymcvay4727 3 года назад
@@PezzzasWork I'd Imagine. I haven't a clue how you would. maybe some kind of rng gen for combat and turn the looser into food? idk
@IsaacHisey
@IsaacHisey 3 года назад
@@caseymcvay4727 Let also please implement RNG for ant love. Colony crossed lovers must face the wrath of their colonies and risk all their food for each other XD
@caseymcvay4727
@caseymcvay4727 3 года назад
@@IsaacHisey sounds gay, im in
@MarekKnapek
@MarekKnapek 3 года назад
And each colony having different behavior / brain / marker strength. Then let them fight for resources against each other. Slightly modifying brains each round. Genetic programming!
@avocadospicedlatte1142
@avocadospicedlatte1142 3 года назад
Holy crap dude! you just keep going with this and i love it! your one of my favorite c++ youtubers! keep it up!
@megamasterblogs
@megamasterblogs 3 года назад
Amazing to see the progress you have been making in this series. This took great, this has inspired me to try it my self (I am still learning)
@jalico6860
@jalico6860 3 года назад
Love seeing these get more creative and I'm curious about when you start adding in the soldier ants and creating hazards that the colony would fight off
@Jacker_Deluxe
@Jacker_Deluxe 3 года назад
I really like the way these simulations expand in complexity. It's a great format^^ :D
@solanofelicio
@solanofelicio 3 года назад
Your videos keep getting cooler. Keep up!
@andrewkinsey8754
@andrewkinsey8754 2 года назад
Love this, this is genius level programming you have captured emergence in a way I've never seen before
@SheWhoExists
@SheWhoExists 3 года назад
Gorgeous work once again! I think a nice change might be making the fog of war visualization transparent so that we can see what the map looks like even though the ants can't
@depatrify
@depatrify 3 года назад
Excellent. Very cool that you've taken it this far with just hard coded rules.
@qwertyuiop2161
@qwertyuiop2161 3 года назад
thanks for a part 4 :) look forward to a part 5 if there will be.
@SmallKatas
@SmallKatas 3 года назад
I love the progression of this series!
@kenny-kvibe
@kenny-kvibe 3 года назад
I love it, it's getting better and better every time!
@stevesajeev6477
@stevesajeev6477 3 года назад
Wow.. your content is becoming awesome.... And awesome... I Love watching it.... Nice editing and graph features...
@tobenamed610
@tobenamed610 3 года назад
Maybe next time instead of a map already made for them you can experiment with making them dig their own tunnels? It'd be cool to see how they form, especially if you add rules to how they dig and get a bunch of really crazy results. Maybe eventually we could get into different types of ants with their own rules and program some kind of nest behavior? There's a lot you can do here!
@darkfrei2
@darkfrei2 3 года назад
I am glad that the "o" was not closed and ants can get food from it.
@insignificantduck313
@insignificantduck313 2 года назад
This video was made on my birthday and I couldn't be happier.
@snailetiquette
@snailetiquette 2 года назад
Watching the colony get it's act together was really cool
@cake8705
@cake8705 3 года назад
I live to see your progress!
@joseph-eleazarduhot2030
@joseph-eleazarduhot2030 3 года назад
Amazing improvements !
@jacobmosovich
@jacobmosovich 2 года назад
I want a phone app of this. It feels like it would be an amazing eye candy game to just simulate and create your own fun map designs with.
@lachlangray8120
@lachlangray8120 3 года назад
This is the coolest thing ever!!! Thankful for the RU-vid algorithm. This must have been so much fun to build.
@rockm9222
@rockm9222 3 года назад
Can't wait to see you implement enemies! This is going along great!
@vadeemrerogi
@vadeemrerogi 2 года назад
This honestly would be one of those games people wound buy to experiment with the ants. I can see this turning into a good sandbox games XD
@epicfailtackular
@epicfailtackular 3 года назад
100% the best outros on RU-vid right now.
@aapjew18
@aapjew18 3 года назад
I'm absolutely loving these. So cool
@fakiirification
@fakiirification 2 года назад
all thats really missing is the ability to dig new tunnels and create new food stores/brood chambers. this could be a fun rabbit hole to explore.
@jatinsaini7790
@jatinsaini7790 3 года назад
As always, amazing improvement!
@brajki6364
@brajki6364 3 года назад
A legendary channel that is cooler than every other.
@cheydinal5401
@cheydinal5401 3 года назад
That's really cool, thanks! Now allow them to starve if they don't have enough food, with each ant using up a certain amount of food
@turdle2767
@turdle2767 9 месяцев назад
Huge buff for the min maxers in these patch notes. "No food markers" is huge
@mark_makes
@mark_makes 3 года назад
This is amazing!! My suggestion for what to do next is to look at how to simulate within the colony itself (breeding and food storage)
@Daro-Wolfe
@Daro-Wolfe 3 года назад
Well all the ants have one mother, so
@mark_makes
@mark_makes 3 года назад
@@Daro-Wolfe exactly! It could be very interesting to simulate larvae placement and food storage, or even look at the queen's production of winged ants to create new colonies. Lots of possibilities 🙂
@Sian_hi
@Sian_hi Год назад
I don’t regret clicking on this video on my recommendation page
@wallabra
@wallabra 3 года назад
Heyy! This is starting to look less like an experiment (a fun one, nonetheless), and gradually much more like something that could easily be turned into a game. As a child, I once tried to do something even mildly akin to SimAnt. It was one of my first ventures into the world of C and C++. Of course, I but miserably failed, as I had bit more than I could chew, and abandoned the project, left to bitrot on GitHub. Nowadays, I might just be able to, and this video is exciting inspiration to do so! I'm working on a PR to add IPv6 support to Chocolate Doom, but once I'm done with that I'm excited to try a new thing like this. Thank you Pezza! :D
@zo0ot404
@zo0ot404 3 года назад
Very cool, cant wait to see what you do next :)
@Flobbled
@Flobbled 3 года назад
This is really cool! I have an idea for another new pheromone: "food too far" It gets released when an ant has found food but takes too long to come home, so it eats the food, restoring (some?) lifetime. It could be used to determine where an new colony should be started, if that's something you also would wanna implement. Alternatively the ant could just die and drop the food to be found by another ant.
@legitgopnik8431
@legitgopnik8431 3 года назад
I love this series! What if you coded in two colonies racing against each other? Maybe even fighting and killing each other? It'd be cool to see that as a long-term simulation, maybe with renewable food sources 🤔
@n0b0dy15
@n0b0dy15 2 года назад
I LOVE ants and now i love your channel +1 subscriber
@DeepRafterGaming
@DeepRafterGaming 3 года назад
Amazing... i have nothing more to add, great progress, gj.
@dazcarrr
@dazcarrr 3 года назад
i guess the next step would be to make randomly spawning clumps of food
@florencemukagoga8513
@florencemukagoga8513 Год назад
You always do great videos
@nak_attak
@nak_attak 3 года назад
This is genuinly amazing
@TheEightshot
@TheEightshot 3 года назад
Okay so now, create the maze procedurally, add food at random intervals in random places, make the maze infinitely scalable and run 1x speed. Best screen saver EVER. personal virtual ant farm.
@sinnvollerkommentar263
@sinnvollerkommentar263 3 года назад
Great improvements. Please Keep doing more
@NikoKun
@NikoKun 3 года назад
Wow.. This just keeps getting better and better! Love watching it solve the maze! ;) I've actually been working on my own ant pheromone simulation, written in python.. And it's fun, and sorta works, but nowhere near as function as yours.. I think my rules and evap time need adjusting, as well as wall avoidance.. heh
@omg33ky
@omg33ky 3 года назад
Very nice. Can we now get into that that the population would go down if not enough food is found to feed all of them? I love the series btw
@spenceryascolt8038
@spenceryascolt8038 3 года назад
LOVE your videos!
@matteomartins6007
@matteomartins6007 3 года назад
Im mezmerized, this is amazing. Good job :)
@tribunealpha1059
@tribunealpha1059 3 года назад
Fascinating. Everything about this is interesting and somewhat hypnotic. What else do you plan on implementating?
@danielsuveges2895
@danielsuveges2895 3 года назад
Oh boy, you put some time into this.
@thedouble1269
@thedouble1269 10 месяцев назад
dude different types of ants like scouts and workers or smth would be really cool
@UmzGames
@UmzGames 3 года назад
Love seeing this videos- is this slowly becoming a game? Would love to see that.
@guyard6098
@guyard6098 3 года назад
Maybe add an incentive for ants to explore areas in the fog of war. Also you can mark explored areas with no food as non-interesting, that way ants won't waste time going to places they already been to. And lastly, maybe add other types of ants for specializations (like explorer, gatherer etc...). Really cool and fun to watch simulation!
@clashthegamer4873
@clashthegamer4873 3 года назад
There should be special areas which regularly spawns some food, because the logical conclusion of what happens to the colony in these simulations after food runs out is that they all die, so a food source should have a special color of itself so ants know to occasionally check it (say every few trips or so)
@rot_studios
@rot_studios 3 года назад
I see a fun little simulation game being developed here! :D
@aurielklasovsky1435
@aurielklasovsky1435 3 года назад
I love this, its like 50% of a cool strategy game by now. Just need to think of something fun for a player to do
@TheStrangeRandomness
@TheStrangeRandomness 3 года назад
I would love to see wars between different colonies of ants competing for food/territory
@ibuildblasters8118
@ibuildblasters8118 2 года назад
this would be an incredible screensaver
@astrodoc1
@astrodoc1 3 года назад
Next you should add a 2nd colony and have them fight for the resources
@Deathlupus
@Deathlupus Год назад
That ant on 3:50 must be the Christopher Columbus of ants.
@desocrate
@desocrate 3 года назад
Colonization to spread the hive would be amazing
@juuliano1383
@juuliano1383 2 года назад
It would be cool to see this implemented into a strategy game or learning tool
@wormjuice7772
@wormjuice7772 3 года назад
What is that noise? No no no.. Those are ants being hard at work!
@TommyLikeTom
@TommyLikeTom 2 года назад
We're very similar. I have a ants build of a unity game I made many years ago on my PC. I actually kind of wish now that I did more with it. I was trying to make it 3D so ants could walk on walls. I got it working in 2d to the level you did on your first approach. This was about 5 years ago
@simsonsj
@simsonsj 3 года назад
This is so cool! what is your longterm plans? game?
@sayethwe8683
@sayethwe8683 3 года назад
Do foraging ants have any reaction to idle trail/home signals? because personally, if I was out foraging, an easy way I would try to find new places unvisited before would just be to head directly away from the greatest concentration of trail I could sense.
@DaveMackenzie
@DaveMackenzie 3 года назад
There IS a game in there. Next step: competing colonies?
@akitaxzero
@akitaxzero 3 года назад
it would be cool if you get them to dig for food. Like a material that an ant can randomly decide to "eat" through, but it's not food. I wonder what kind of tunnels they would make.
@schirmcharmemelone
@schirmcharmemelone 3 года назад
Hey Pezza, how do you prevent the Antmill of death? when two ants cross each other and going the opposite direction. Why isnt one following the other? Since both output the pheromone the other is looking for? One going towards home and the other going to the food source.
@memorabiliatemporarium2747
@memorabiliatemporarium2747 3 года назад
I wonder how they'd behave if they had to burrow their paths like real ants. Competing colonies would also be interesting. Really fun stuff.
@abdulroufsiddhu6820
@abdulroufsiddhu6820 3 года назад
Love ur work
@alexislouis2320
@alexislouis2320 3 года назад
Mesmerizing work ❤️
@hexagon8899
@hexagon8899 3 года назад
thanks for making it
@mightygeneral4359
@mightygeneral4359 3 года назад
I think it might be cool if you start introducing rivaling ant colonies
@NTC
@NTC 3 года назад
awesome work!
@Roter_Wolf
@Roter_Wolf 3 года назад
Great work!
@plasmaburn8003
@plasmaburn8003 2 года назад
I've noticed around 3:28 ants were following a ant holding food besides go towards the food
@stefanobertolotti2555
@stefanobertolotti2555 3 года назад
Great job, Pezzza!
@jonathanhemmi6445
@jonathanhemmi6445 3 года назад
hey pezza i downloaded the simulation from your github. how do you make the more complex wall shapes and larges batches of food? as far as i can see in the version on github only single pixels can be added. Thanks for the amazing simulation!!
@chaos6828
@chaos6828 3 года назад
Mmm "Fog of war" I like it. Nice idea
@typicalhog
@typicalhog 3 года назад
This is amazing!
@ShunanoriNisinomiya
@ShunanoriNisinomiya Год назад
I've learned that ants that seem meaningless and just wandering around can be very helpful. The same can be said for human society.
@treeislife
@treeislife 3 года назад
Do you do collision detection between ants?
@fredg8328
@fredg8328 3 года назад
These ants never die
@andymitchell2146
@andymitchell2146 3 года назад
Next up - battle ants. Nest vs Nest.
@62koalalover
@62koalalover 3 года назад
amazing video
@ibemper1850
@ibemper1850 3 года назад
how do you render it, opengl, sdl, sfml, vulkan, dx11??
@AbsolutelyPlasmadic
@AbsolutelyPlasmadic 3 года назад
I would love to see competing ants, do you think that's possible?
Далее
C++ Ants Simulation 5, Ants Fight
9:24
Просмотров 1 млн
Much bigger simulation, AIs learn Phalanx
29:13
Просмотров 2,6 млн
Что-то пошло не так 😂
00:15
Просмотров 436 тыс.
Tanghulu Cotton Candy
00:31
Просмотров 17 млн
Я ДРОЖАЛ ПОСЛЕ ЭТОГО...
16:24
Просмотров 441 тыс.
C++ Ants Simulation 3, Maze
5:09
Просмотров 558 тыс.
Space War - Marble Game
19:32
Просмотров 180 тыс.
Harder Than It Seems? 5 Minute Timer in C++
20:10
Просмотров 66 тыс.
Artificial Life. The battle of clans
19:34
Просмотров 453 тыс.
Turning bugs into Art
7:43
Просмотров 193 тыс.
C++ Ants Simulation 1, First approach
4:37
Просмотров 614 тыс.
AIs learn to WALK
20:21
Просмотров 49 тыс.
Lenia - Artificial Life from Algorithms
13:15
Просмотров 116 тыс.
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Просмотров 8 млн
Google Pixel 8 Pro #apple #googlepixel #iphone
0:17
Просмотров 14 тыс.
Индуктивность и дроссель.
1:00
Индуктивность и дроссель.
1:00