C++ Ants Simulation 4, Colony

  Рет қаралды 290,687

Pezzza's Work

Pezzza's Work

Күн бұрын

Пікірлер: 285
@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?
@monoplexbob
@monoplexbob 3 жыл бұрын
If this were today I would ask how to make this my screensaver.
@elFulberto
@elFulberto 3 жыл бұрын
@@monoplexbob 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 2 жыл бұрын
Underrated comment
@angrywolfjr7164
@angrywolfjr7164 3 жыл бұрын
let's go my favorite series, i wanna make this one day so bad
@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 9 ай бұрын
sounds like Sim Ant. I'm on bored with it!
@waffle8364
@waffle8364 9 ай бұрын
​@kuwertzel8938 this actually does happen cause they also have a chance to "shake hands"
@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.
@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!
@DNAmaster10
@DNAmaster10 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 3 жыл бұрын
@@davidgustavsson4000 Well some screensavers implemented by microsoft aren't really saving anything so they are probably here just to make some pretty animations :)
@bananaknox3861
@bananaknox3861 Жыл бұрын
When the ants are started, they look like a sun supernova and start grabbing food with those paths, its very satisfying
@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!
@qgamer2266
@qgamer2266 3 жыл бұрын
Wow, the ant playing a real time strategy game with fog of war 😂👍 Really love your videos!
@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 ❤
@stevesajeev6477
@stevesajeev6477 3 жыл бұрын
Wow.. your content is becoming awesome.... And awesome... I Love watching it.... Nice editing and graph features...
@joseph-eleazarduhot2030
@joseph-eleazarduhot2030 3 жыл бұрын
Amazing improvements !
@Jacker_Deluxe
@Jacker_Deluxe 3 жыл бұрын
I really like the way these simulations expand in complexity. It's a great format^^ :D
@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)
@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
@solanofelicio
@solanofelicio 3 жыл бұрын
Your videos keep getting cooler. Keep up!
@dazcarrr
@dazcarrr 3 жыл бұрын
i guess the next step would be to make randomly spawning clumps of food
@kenny-kvibe
@kenny-kvibe 3 жыл бұрын
I love it, it's getting better and better every time!
@andrewkinsey8754
@andrewkinsey8754 2 жыл бұрын
Love this, this is genius level programming you have captured emergence in a way I've never seen before
@qwertyuiop2161
@qwertyuiop2161 3 жыл бұрын
thanks for a part 4 :) look forward to a part 5 if there will be.
@lachlangray8120
@lachlangray8120 3 жыл бұрын
This is the coolest thing ever!!! Thankful for the KZbin algorithm. This must have been so much fun to build.
@SmallKatas
@SmallKatas 3 жыл бұрын
I love the progression of this series!
@depatrify
@depatrify 3 жыл бұрын
Excellent. Very cool that you've taken it this far with just hard coded rules.
@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!
@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
@brajki6364
@brajki6364 3 жыл бұрын
A legendary channel that is cooler than every other.
@rockm9222
@rockm9222 3 жыл бұрын
Can't wait to see you implement enemies! This is going along great!
@epicfailtackular
@epicfailtackular 3 жыл бұрын
100% the best outros on KZbin right now.
@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!
@StainlessHelena
@StainlessHelena 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.
@insignificantduck313
@insignificantduck313 3 жыл бұрын
This video was made on my birthday and I couldn't be happier.
@snailetiquette
@snailetiquette 3 жыл бұрын
Watching the colony get it's act together was really cool
@cake8705
@cake8705 3 жыл бұрын
I live to see your progress!
@Sian_hi
@Sian_hi Жыл бұрын
I don’t regret clicking on this video on my recommendation page
@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
@nak_attak
@nak_attak 3 жыл бұрын
This is genuinly amazing
@jatinsaini7790
@jatinsaini7790 3 жыл бұрын
As always, amazing improvement!
@aapjew18
@aapjew18 3 жыл бұрын
I'm absolutely loving these. So cool
@vadeemrerogi
@vadeemrerogi 3 жыл бұрын
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
@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 🙂
@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.
@darkfrei2
@darkfrei2 3 жыл бұрын
I am glad that the "o" was not closed and ants can get food from it.
@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
@matteomartins6007
@matteomartins6007 3 жыл бұрын
Im mezmerized, this is amazing. Good job :)
@n0b0dy15
@n0b0dy15 3 жыл бұрын
I LOVE ants and now i love your channel +1 subscriber
@jacobmosovich
@jacobmosovich 3 жыл бұрын
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.
@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!
@turdle69420
@turdle69420 Жыл бұрын
Huge buff for the min maxers in these patch notes. "No food markers" is huge
@DeepRafterGaming
@DeepRafterGaming 3 жыл бұрын
Amazing... i have nothing more to add, great progress, gj.
@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
@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
@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.
@danielsuveges2895
@danielsuveges2895 3 жыл бұрын
Oh boy, you put some time into this.
@florencemukagoga8513
@florencemukagoga8513 Жыл бұрын
You always do great videos
@Deathlupus
@Deathlupus 2 жыл бұрын
That ant on 3:50 must be the Christopher Columbus of ants.
@sinnvollerkommentar263
@sinnvollerkommentar263 3 жыл бұрын
Great improvements. Please Keep doing more
@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.
@zo0ot404
@zo0ot404 3 жыл бұрын
Very cool, cant wait to see what you do next :)
@rot_studios
@rot_studios 3 жыл бұрын
I see a fun little simulation game being developed here! :D
@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 🤔
@spenceryascolt8038
@spenceryascolt8038 3 жыл бұрын
LOVE your videos!
@astrodoc1
@astrodoc1 3 жыл бұрын
Next you should add a 2nd colony and have them fight for the resources
@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
@TheStrangeRandomness
@TheStrangeRandomness 3 жыл бұрын
I would love to see wars between different colonies of ants competing for food/territory
@thedouble1269
@thedouble1269 Жыл бұрын
dude different types of ants like scouts and workers or smth would be really cool
@tribunealpha1059
@tribunealpha1059 3 жыл бұрын
Fascinating. Everything about this is interesting and somewhat hypnotic. What else do you plan on implementating?
@UmzGames
@UmzGames 3 жыл бұрын
Love seeing this videos- is this slowly becoming a game? Would love to see that.
@wormjuice7772
@wormjuice7772 3 жыл бұрын
What is that noise? No no no.. Those are ants being hard at work!
@simsonsj
@simsonsj 3 жыл бұрын
This is so cool! what is your longterm plans? game?
@juuliano1383
@juuliano1383 3 жыл бұрын
It would be cool to see this implemented into a strategy game or learning tool
@ondrejandydlohos
@ondrejandydlohos 3 жыл бұрын
1:22 here you can see a rare footage of first beta version of StarCraft.
@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)
@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
@desocrate
@desocrate 3 жыл бұрын
Colonization to spread the hive would be amazing
@ibuildblasters8118
@ibuildblasters8118 3 жыл бұрын
this would be an incredible screensaver
@DaveMackenzie
@DaveMackenzie 3 жыл бұрын
There IS a game in there. Next step: competing colonies?
@chaos6828
@chaos6828 3 жыл бұрын
Mmm "Fog of war" I like it. Nice idea
@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.
@DonatCallens
@DonatCallens 2 жыл бұрын
What is your function for evaporation of food markers? If it is linear, that might be the rason the food markers stay too long. It should follow a half life decay function to be closer to reality.
@mightygeneral4359
@mightygeneral4359 3 жыл бұрын
I think it might be cool if you start introducing rivaling ant 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.
@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.
@stefanobertolotti2555
@stefanobertolotti2555 3 жыл бұрын
Great job, Pezzza!
@fredg8328
@fredg8328 3 жыл бұрын
These ants never die
@alexislouis2320
@alexislouis2320 3 жыл бұрын
Mesmerizing work ❤️
@AbsolutelyPlasmadic
@AbsolutelyPlasmadic 3 жыл бұрын
I would love to see competing ants, do you think that's possible?
@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!!
@The_Epicness9000
@The_Epicness9000 3 жыл бұрын
Infinite food spawner? Portals? A full map of food?
@TaranovskiAlex
@TaranovskiAlex 2 жыл бұрын
I think the "no more food" marker is a bit broken... I guess I'd try to somehow localize a chunk of food and set the marker when "there is no food nearby" - maybe you are doing it literally the same way as I described, but the result still seems a bit off... Maybe one idea is "ant initially traverses the boundary of the food", thus marking that "food is actually there", maybe it's worth tracking that boundary of the food somehow...
@vitalii1372
@vitalii1372 3 жыл бұрын
Cool stuff! Only question, why C++?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
Just because I love it :)
@tr4nt6880
@tr4nt6880 3 жыл бұрын
One day this man will make Society simulation
@abdulroufsiddhu6820
@abdulroufsiddhu6820 3 жыл бұрын
Love ur work
@1_1bman
@1_1bman 3 жыл бұрын
i've been trying to understand how the ants can converge on a good path this way; it's never really clicked for me yet. do the ants retain memory of which markers they placed vs other ants? does the algorithm for pheromone dissipation somehow make it work? to me, it just seems like if one ant takes an alternate route, it doesn't matter how much faster or slower the route is; the same percentage of the rest of the colony will end up taking it, either hurting or helping the entire colony randomly. what's wrong with my line of thinking? why does this work anyway?
@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.
@zephy6446
@zephy6446 3 жыл бұрын
Amazing video bro, how did you learn sfml? Was it through a book or online resource?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
I learn it on the official tutorials directly on the SFML website. It is a very well designed library making it very intuitive to work with
@zephy6446
@zephy6446 3 жыл бұрын
You are the best man thank you! Do you recommend I make my own entities or use the available ones?
@int2201
@int2201 3 жыл бұрын
I tried making an ants simulation once, it was nowhere near as cool as this.
C++ Ants Simulation 5, Ants Fight
9:24
Pezzza's Work
Рет қаралды 1,1 МЛН
C++ Ants Simulation 6, Editor
7:38
Pezzza's Work
Рет қаралды 210 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 83 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 5 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 172 МЛН
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Pezzza's Work
Рет қаралды 111 М.
Kerbal Mun arch flyby with station.
3:05
The Virtual Scotsman
Рет қаралды 9 М.
I Made a Minecraft Clone in C++
10:15
WSAL Evan
Рет қаралды 109 М.
This is Why All Insects Are Afraid of Ants
10:12
WATOP
Рет қаралды 12 МЛН
C++ Ants Simulation 1, First approach
4:37
Pezzza's Work
Рет қаралды 622 М.
Humans Surrounded By All 4 Tumors! - WorldBox
11:34
Gorg
Рет қаралды 275 М.
Coding Adventure: Boids
8:35
Sebastian Lague
Рет қаралды 1,6 МЛН
C++ Ants Simulation 2, Path optimization
6:01
Pezzza's Work
Рет қаралды 298 М.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 196 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 83 МЛН