Тёмный

C++ Ants Simulation 6, Editor 

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

This video is a short presentation of the first beta version of the Ants Simulation Editor.
It is possible to download it for windows here github.com/johnBuffer/AntSimu...

Наука

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

 

8 дек 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 269   
@markusbuchholz3518
@markusbuchholz3518 2 года назад
From my humble point of view your ideas how to enjoy the goodness of programming (here especially wonderful C++) are brilliant. Great channel and promotion of perfectionism. Consistent programming. I do believe all the subscribers enjoy watching your great performance and analyze the code. Keep fingers for your goals. Have nice day.
@PezzzasWork
@PezzzasWork 2 года назад
Thank you very much for your support
@lasvoss018
@lasvoss018 2 года назад
Why C and C++ exist instead of C+ ?
@timmetz7321
@timmetz7321 2 года назад
@@lasvoss018 r/cursedComments
@user-ml1mr1ls2y
@user-ml1mr1ls2y 2 года назад
@@lasvoss018 the ++ in C++ denotes the 'increment operator'. You'll learn about it when you will take a C++ course.
@pineapplerindm
@pineapplerindm 2 года назад
@@user-ml1mr1ls2y is the increment operator really that important for them to name the language after it
@pipecleanermaster
@pipecleanermaster 2 года назад
I think it would be amazing if you could code so that The ants could dig through weaker materials or move light obstacles around or even cross bridges or float across water like real ants do
@theodorostsilikis4025
@theodorostsilikis4025 2 года назад
Ηow would they know what is behind a wall if they dont explore first? I dont think this is possible in 2d,maybe in 3d.
@pipecleanermaster
@pipecleanermaster 2 года назад
@@theodorostsilikis4025 still would be cool, I was thinking for building a nest structure or mounds, similar to termites
@BDiegoTube2
@BDiegoTube2 2 года назад
@@pipecleanermaster Perhaps, we could make the simulation 3-D, as in two layers. Also, we could have larvae which grow into ants over time.
@The_Foreman
@The_Foreman 2 года назад
@@pipecleanermaster While surface movement is relatively simple to simulate, nest construction has proven to be rather... uncommon? I don't know how difficult it would be, but from what few examples there have been, none have done all that great of a job. There would have to be several dozen behaviors as well as many unique signals in order to construct anything like how a nest is formed. That being said, breakable walls would be interesting for delayed rooms, such as the one at 4:00
@Zedryx69
@Zedryx69 2 года назад
or even turn into bridges, or make graveyards for the fallen.
@Sawta
@Sawta 2 года назад
Love the progress you've made! Been watching for a while now. Looking forward to see more vids!
@DailyCorvid
@DailyCorvid Год назад
You are making thoughts into an art form which translates into meaning perfectly, through digitally described animation like this. I am so impressed at how guddamn good these all are, and the AI simulations. This stuff is absolutely incredible coming from a single person with no large team or budget. So cool!
@erictheepic5019
@erictheepic5019 2 года назад
Never have I been so fortunate as to arrive to one of your videos this early. Excited to be able to play around with this.
@raducristiandimitrie
@raducristiandimitrie 2 года назад
Lol, I've just discovered your channel, and was watching all your vids, then decided to subscribe, and now a new vid already popped, ha. Nice!
@cake8705
@cake8705 2 года назад
Hello just wanted you to know that I love your work and you're very talented! I love how far you've gone with this ants project and I see even more possible growth! Keep up the good work!
@oeq57
@oeq57 Год назад
I absolutely love all the work that you do on this channel. This is yet another example of astoundingly great content. You maintain a high quality level throughout your videos and we all appreciate the effort. I was curious about 3 possible additional scenarios that could be added to the ant colony simulations: 1) Moving of a colony. This could be with regards to multiple scenarios such as : too far away from a large source of food, too close to a competing colony. 2) Creation of a new colony. In situations where the popoluation density of a colony is extremely high it would be beneficial if the colony created some kind of secondary location to help save on resources. 3) Merging of colonies. When there are two colonies that are in close proximity to each other for a large period of time maybe they start reproducing to create a colony that is hostile to neither. These are just some ideas. I hope you like them. Have a nice day.
@skanslovakia553
@skanslovakia553 2 года назад
Wow this is truly amazing! thanks for sharing a code, since how long are you coding/learning to code? and how old are you?
@PezzzasWork
@PezzzasWork 2 года назад
I am developing for around 15 years and I am 27
@pineapplerindm
@pineapplerindm 2 года назад
@@PezzzasWork that's amazing
@eyallevin6302
@eyallevin6302 Год назад
@@PezzzasWork Nice!
@comicspace8034
@comicspace8034 Год назад
@@PezzzasWork Holy- Youve been coding for longer than ive been alive!
@rodakdev
@rodakdev 2 года назад
Your're projects are so well made!
@rodakdev
@rodakdev 2 года назад
Also could you please create linux version, so I don't lose performance with wine.
@PezzzasWork
@PezzzasWork 2 года назад
I plan to release a debian and macOS version soon :)
@Periwinkleaccount
@Periwinkleaccount 2 года назад
Your* “you’re is just short for “you are”.
@masontasker
@masontasker 10 месяцев назад
@@PezzzasWork ah yes "soon"... it has been 1 year
@Thk10188965
@Thk10188965 2 года назад
The fighting ants are weird to me, have yet to look at the code for his new version, but in the last version it looked like they were produced parallel to the normal ant stream, which since, as far as I could tell, actively harvesting colonies are typically just deleting a bunch of the incoming food normally, just means a colony producing fighters is just getting to use more of it's resources, meaning once you 'saturate' your colony's food reserves it is optimal to be producing fighters, which in my runs was often triggered asymmetrically by one lost ant giving one side a massive headstart on fighter production. My minimal coding experience led me to removing fighter production altogether and having the basic ants not seek to start fights but be able to initiate battle if they happen to cross paths with an opposing ant and seek to pile on to aid allied ants they 'see' are fighting. I also made colonies able to hold basically infinite food cause I disliked the waste, would rather have had them chill around the colony till there was space or something, but didn't know how. Also wanted to add some sort of disengage, but couldn't make heads or tails of the marker system to even begin to implement that. Any plans to resolve small (one to two tile) gaps slaughtering ants? even something as simple as 'drop food and teleport to home colony' instead of die, or perhaps a 'warn away'/'danger' marker (perhaps with with walls/floor that either kill or have a chance to kill on contact)
@kukyo_xela
@kukyo_xela 2 года назад
This is just epic. Like you have made this seemingly boring concept of simulated ants and made it into something so interesting!
@dragonminz602
@dragonminz602 2 года назад
It is just amazing! I love watching how you develop it more and more
@TheMoldyWater
@TheMoldyWater 3 месяца назад
Found this through curious archive and my daughter played it all evening, barely even stopping to eat pizza -- every 9 year old's favourite food. 10/10 stars, daughter's new favourite
@dottedboxguy
@dottedboxguy 2 года назад
woo pezzza’s here, letsgo (just finished watching the vid, and what you made is awesome ! great job)
@freshtalesnans
@freshtalesnans 2 года назад
this is very good! thank you for this code and amazing editor that's easy to use! my suggestions/ideas are a wall that is demolishable, so that wandering ants that run into it will remove a pixel of wall, food that only certain colonies want, and the ability to speed the simulations up to 10x speed in the editor for convenience. thank you!
@xweert711
@xweert711 2 года назад
Best update so far. I hope you update this more in the future; this is seriously such an incredibly fun tool to experiment with and learn from
@TheDemigans
@TheDemigans 2 года назад
This is so close to an Ant RTS game I would like to see. Add the ability to control some features of the Ants like the distance they move from the colony, give them general directions to move in, building basic structures (storage room, queen room, larvae room, barricades) and other simple orders. Give orders to dig terrain (works similarly to the food collection) or even move terrain, have some neutral enemies spawn and roam about to fight and turn into food (risk/reward), add some potential modifiers such as rain, temperature, soil differences etc and you are set. If that all doesnt break the coding go nuts. The Ant kingdom already has a ludicrous variety and adding the capabilities of the insect kingdom you can let players (d)evolve their Ants. Bigger Ants carry more and are tougher, but consume more food, have longer gestation/growth times and have lower larvae generation. Add special castes you can evolve some % of your larvae into like weaver Ant casts to build more intricate structures, steal the ability of the bombardier beatle to shoot corrosive stuff, differentiate between Ants that only bite, Ants that squirt poisons on wounds and Ants with stingers. Add upgrades to consume more food types, farm some insects and plant matter etc. I know its a weird long shot, but Ants are incredibly suitable for RTS's.
@V7I-theseventhsector
@V7I-theseventhsector 2 года назад
i just found your channel and I LOVE IT!!! i love finding small projects like this and messing around with it!!! not really a programer my self but still find it very interesting!! a few recommendations? maybe give ants the ability to dig/build? as that is what they are really known for? like each peace of first has to be moved out of the nest and the larger the nest gets the more that need to be moved? giving an ant hill or termite tower affect? just think that would be cool lol!! keep up the work it looks amazing!!!!
@kryw_nayrod8838
@kryw_nayrod8838 11 месяцев назад
A Big thanks for having published your work that aweome !!!!
@iamdozerq
@iamdozerq 2 года назад
Pure entertainment channel! Just like primitive technology. Every video is delicious eyecandy. And so inspirational for beginner programmers like me. Thanks for hight quality content!
@corvettez06usa
@corvettez06usa Год назад
So much of this program feels like the old game SimAnt and I love the hell out of that.
@SiggyPony
@SiggyPony Год назад
Only found this just now. I really like your work :D
@crawlkiller5685
@crawlkiller5685 2 года назад
just a thought of mine: how abaut a walltype which the ants can "eat" through. could bring in some food but not as much as an actual foodsource. they can eat away that section of wall and find an alternative route or something like that....
@kirtil5177
@kirtil5177 2 года назад
i think that will make possible to make ants that make their own nests instead of filling up space. possibly with materials with varying 'hardness' that makes ants chew threw soft soil first if they can but able to go through harder soil slowly if needed. The nest can then be simply an opening hole, like a portal between aboveground and underground
@Lurkily_Esh
@Lurkily_Esh 2 года назад
I might use this as a screensaver, if I could set it to plop random new food sources at a certain level of depletion. The evolution of the density view is lovely.
@wormjuice7772
@wormjuice7772 2 года назад
Everytime i watch your ant simulation videos i feel i need to start diving in to C++ What program should i use? (tutorials i can ofcourse find on the tube here) Man this is awesome!
@zperk13
@zperk13 2 года назад
TheCherno has a pretty good C++ series. Though I wouldn't reccomend learning C++ as a first programming language.
@PezzzasWork
@PezzzasWork 2 года назад
I learned mainly by doing little projects over the past few years
@wormjuice7772
@wormjuice7772 2 года назад
@@zperk13 thanks i will be looking into it!
@wormjuice7772
@wormjuice7772 2 года назад
@@PezzzasWork well i take that as a good example!
@garrettrinquest1605
@garrettrinquest1605 Год назад
For anyone wondering, the .exe file works just fine on Linux using Wine. I used a default Bottles config to run mine and it hasn't had any issues.
@DavidTriphon
@DavidTriphon 2 года назад
This is awesome! I'm excited to play with this later.
@mahirfr
@mahirfr 2 года назад
Idk about others but this channel is so much inspiring for me to get into c++
@martian102
@martian102 Год назад
Some ideas Poisoned food + Healer Ant + Poisoned Food Mark: Basically, the poisoned food damages the ant that has held poisoned food (and it can start some sort of plauge) and thats where the healer comes in. Healers are small and don't forage for food, they follow Poisoned food marks and they heal the ants going there, sooner in the simulation they can destroy that certaint poisoned food Sister colonies + Rebellions: Sister colonies are set up by some ants, rebellions happen when the Sister colony has no more loyalty to that colony Water: Water slows and kills ants, to prevent this, the colony must have... Builder ants + Dirt: They build bridges with dirt and prevents death of familiy members Take Control (Colony): This system makes you take control of a colony, you can click the colony to produce a worker, soldier, healer or builder. You can also draw paths! Take Control (Ant): This system makes you in control of an ant, you can plant "to home", "to food", "no more food", "to enemy" and "to poisoned food" marks, to move the ant you must click on an empty space and the ant will follow the place you clicked Other bugs: They can range from the mighty praying mantis to the cute and peaceful aphids or the hideous cockroach. Oh and did I mention aphids? Aphid farms: Soldiers can find these aphids and colonize them (like great britian) and tax- I mean get honey dew feom the aphids! Cat: An easter egg only found by drawing a cat shaped trail in take control (colony) once all of that is done, the boss fight begins Snail: no information
@CristianVasquez
@CristianVasquez 2 года назад
This tool is simply amazing! Thanks for it
@EnteRaro19
@EnteRaro19 Год назад
Great work that you are making brother, great contribution. Have good fortune :)
@memeghost2425
@memeghost2425 2 года назад
FINALLY! Another upload by our chicken god
@Selusionzz
@Selusionzz Год назад
Your vids are so awesome! I've been fascinated by AI technology because of this :D Keep up the good work and you might be my favorite youtuber!
@nak_attak
@nak_attak 2 года назад
Yes! This is what I've been waiting for! Wahooo!!
@erayzeuss
@erayzeuss 2 года назад
Ive been following it since the first video. You'e the best
@LuiceliaSuperdia
@LuiceliaSuperdia Год назад
Density looks like sci-fi energy, and i like that
@qwertyuiop2161
@qwertyuiop2161 2 года назад
ooo yeah not disapointed been wanting to run this for ages
@Coco2264
@Coco2264 2 года назад
lol i like how you corrected the "wathing" to "watching" as a nod to your previous video
@PezzzasWork
@PezzzasWork 2 года назад
All I can do is laugh it off :D
@NovidProkteps
@NovidProkteps 2 года назад
Yes! I'm early! Been waiting for this
@freecaddevdiary7038
@freecaddevdiary7038 Год назад
Thanks it's an awesome simulation. Very impressive
@BDiegoTube2
@BDiegoTube2 2 года назад
Awesome, please keep up the good work.
@secureanonymousverifiablea7147
@secureanonymousverifiablea7147 2 года назад
This is incredible stuff! I'm going to think about how to add it to my community and help generate deserved revenue! :)
@Zk_2w105
@Zk_2w105 Год назад
Nice work! Just one question, how do u edit the incial amount of ants per colony?
@quinn840
@quinn840 2 года назад
Is this the finale or is there more to come cuz I love this so much
@ehsnils
@ehsnils 2 года назад
In nature I have observed that sometimes there are two ant hills very close to each other and they don't seem to fight each other, so maybe the ants can actually establish a truce if there's enough resources for both.
@gangreneday
@gangreneday 2 года назад
Amazing! What kinds of problems we’ll solve!
@hyperteleXii
@hyperteleXii 2 года назад
That's the funny thing. Ants use it to solve all their problems, but humans haven't figured any use for it yet (better than our other tools, which are many).
@theblueberrypi6152
@theblueberrypi6152 2 года назад
Nice! Tried out the simulator, was really cool and beautiful. But I wonder if it’s possible to edit the initial amount of ants?
@kamoamo1730
@kamoamo1730 8 месяцев назад
relaxing series i watch it to sleep always end up at 4th episode
@tyler2854
@tyler2854 2 года назад
Awesome work as always!!!
@henwill8
@henwill8 2 года назад
Okay okay the colonies are super cool but your cursive with a mouse is so good
@CosmicCrimson
@CosmicCrimson 2 года назад
I’m jealous of your handwriting… or… screenwriting? Eh whatever, either way you are absolutely godly. Keep up the amazing work.
@Brigtzen
@Brigtzen 2 года назад
This is beautiful.
@rodakdev
@rodakdev 2 года назад
Fascinating.
@fenixmeaney6170
@fenixmeaney6170 2 года назад
No, thank YOU!!! I could spend the entire day just wathing you play with ants
@Xyb3rAnims
@Xyb3rAnims 2 года назад
I like how he's legit making bending laser beams
@Engieanimations
@Engieanimations 2 года назад
It would be cool if for the next release there could be more options for colonies where you can set the max number and how many ants the colony spawns with also some more materials like mayeby different animals and ants would run or fight them? Or add a option for a queen ant where she can make her own colony and ants could make walls slowly
@Engieanimations
@Engieanimations 2 года назад
Also different ant types like worker ants army ants/fighting ants and the giant one
@Vivek-qc8qo
@Vivek-qc8qo 7 месяцев назад
i have a question where does the info is getting stored , like this is a pheromone , how much time has it spent ( for evaporation count ) and all other info is stored in the ants or you have divided whole screen into a grid , and now every box in the grid or pixel in the grid is storing the info ?'
@mirauge2632
@mirauge2632 Год назад
Amazing video! I was just hoping someone could explain to me why when a more efficient path is found to the same pile of food, why does the old path start to disappear? why don't both paths thrive?
@Tifredi
@Tifredi 6 месяцев назад
would that be expensive to use as a general purpose multithreaded search and pathfinding algorithm for complex spaces?
@Pauly421
@Pauly421 Год назад
This series was great nicely done!!! A lot of the music in them is slightly insanity inducing but at least can mute the videos and put something else on 😂
@Lovecraftia
@Lovecraftia 2 года назад
Would love to see multiple colonies of one color that aren’t considered enemy colonies, and possibly new functions for the ants.
@mementomori7160
@mementomori7160 2 года назад
I love the density only view
@dittagecoeco2738
@dittagecoeco2738 2 года назад
Whoa super super and inspiring.
@tonhaodapadaria4011
@tonhaodapadaria4011 Год назад
I will have so much fun with this
@draculaant2702
@draculaant2702 Год назад
A glitch I've noticed is that the ants that are fight dont count completly as ant (like in the density setting if you turn off draw ants the the frontlines I like building dont appear. Also when you move colonies the fighting ants dont get tped back)
@bmge
@bmge Год назад
Great job, congratulations. I like to watch the videos. Do you have a website where you teach how to program what you created? What techniques did you use, like genetic algorithms, neural networks, population dynamics rules, etc., it would be very helpful to show how the program works, flowchart, and so on, maybe create a course. once again Congratulations
@Fummy007
@Fummy007 2 года назад
Had so much fun messing about with the exe.
@angusbeef5259
@angusbeef5259 2 года назад
Wonderful. I’ll have hours of fun!
@jean-claudefrancoisbaroudd730
@jean-claudefrancoisbaroudd730 2 года назад
This is awesome !
@sitaandini8584
@sitaandini8584 2 года назад
I would like you to add some special thing to every colony like maybe yellow ants damage red startegy blue power of taking food cyan need lower food to make ants purple speed Etc And maybe ants can take the home base of the colonies that dies
@Very_Silly_Individual
@Very_Silly_Individual 2 года назад
Oddly beautiful
@dairop3220
@dairop3220 2 года назад
Quel bonheur de voir tes notifs arriver :D
@PezzzasWork
@PezzzasWork 2 года назад
Merci beaucoup :D
@dairop3220
@dairop3220 2 года назад
@@birbmeme2191 it's French, just said that it was a pleasure to receive his notifications ^^
@Beatsbasteln
@Beatsbasteln 2 года назад
this is a real christmas present
@JTheoryScience
@JTheoryScience 2 года назад
any way to re-populate/grow new resources? seems like an entropy simulation without ecosystem considerations.
@etomit4679
@etomit4679 2 года назад
best notif ever
@TheGiantHog
@TheGiantHog Год назад
kinda confused about the smfl installation, I downloaded the zip but not sure how to configure it for VS 2022. video's a year old but lmk if anyone has any helpful insights for getting started with smfl
@DaroTheDragon
@DaroTheDragon 2 года назад
This is amazing If I had a few suggestions mabye adding poisonous food so the ants learn not to eat it
@griffinwaymire5793
@griffinwaymire5793 Год назад
How do you change the starting population sizes?
@titanium_viper5049
@titanium_viper5049 2 года назад
I'm still patiently waiting for this to be released as a game for mobile.
@claeab255
@claeab255 Год назад
What if you made different types of ants, like a leafcutter ant who produces ants directly from the colony and uses food to make the colony bigger?
@user-ml1mr1ls2y
@user-ml1mr1ls2y 2 года назад
How do I learn to do things like these Guru John?.Guide me in my path to discovering this fascinating subject.
@jacksonquinn1472
@jacksonquinn1472 2 года назад
How do you go about optimising this code? I had trouble with JavaScript libraries because rendering each ant and the spots caused huge lag. Did you have any problems with lag?
@williamsokol0
@williamsokol0 2 года назад
well he's in c++ so everything is like 3X faster
@khatharrmalkavian3306
@khatharrmalkavian3306 2 года назад
It really depends on the implementation details. I believe he's using SFML, which employs decent rendering practices and can draw plenty of sprites before running into any issues. There's no reason JS couldn't accomplish the same, assuming you select a capable rendering library and use it efficiently.
@PezzzasWork
@PezzzasWork 2 года назад
Many objects are drawn in bach here. I have 1 draw call per colony to render all its ants at once. The performances would have been much lower if I tried to draw each ant individually
@geogracube
@geogracube Год назад
Does anyone know how to adjust the screen size? I'm running on a laptop Windows 10 right now, and the screen doesn't fit on my laptop Edit: My screen resolution is 1366 x 768.
@Ivan2294
@Ivan2294 2 года назад
I get this error when trying to play it. Failed to load font "res/font.ttf" (failed to create the font face)
@tristenarctician6910
@tristenarctician6910 Год назад
How did you make levels before you made the editor?
@TumbleTrashOfficial
@TumbleTrashOfficial Год назад
what are the white circles in the colonies? Suggestion: ability to save maps.
@hierper7973
@hierper7973 Год назад
all the red pheremones look like something out of stranger things
@PhantomOfficial07
@PhantomOfficial07 Год назад
Whenever I start a simulation the ants always start at 1000, but in your videos it looks like you're able to start them with however many ants you want, I want to be able to play with less ants so I was wondering if that's possible?
@davie53
@davie53 2 года назад
What does the "Full Speed" toggle do? From my testing it doesn't seem to do anything. And besides, if you want people to be able to control the speed, shouldn't it be a slider?
@PezzzasWork
@PezzzasWork 2 года назад
Your not the first mentioning that it is not working, I will investigate this. It is just a toggle and not a slider because it simply remove the frame rate limit letting the simulation run at max cpu / gpu speed
@Robin93k
@Robin93k 2 года назад
@@PezzzasWork It most likely is working, the PCs of these people are simply just too slow to even reach the limiter, and thus don't experience a difference when they remove the limiter.
@alacer8878
@alacer8878 2 года назад
Beautiful. I'm gonna lose a good few hours to this.
@aeqevbminem8037
@aeqevbminem8037 2 года назад
the way you made the density red creeps me out, they look like blood vessels.
@madsnoop7
@madsnoop7 2 года назад
Anyone keen to help a beginner get this running on my computer ? Im just not sure exactly what files are meant to go where in cmake.
@mathematicalmachinery7934
@mathematicalmachinery7934 Год назад
It’s weird that the biggest fights seem to be over the smaller quantities of food, since the colonies usually only meet when the food source is smaller. Maybe have the fighter ants also try to follow the stronger “food here” scents so the colonies waste fewer resources fighting for less reward?
@ellis7965
@ellis7965 2 года назад
Omg dude this is awesome. Is it avalible for download?
@thebradybas
@thebradybas 11 месяцев назад
I don't know how to code, so is there a way I can download just the game/simulator?
@Jorvcraft
@Jorvcraft 2 года назад
Any way to save maps?
@Bbdu75yg
@Bbdu75yg Год назад
Just Epic !
@jonnaphendoonsberg365
@jonnaphendoonsberg365 2 года назад
With which library did you program the graphics?
@rebeccarivers4797
@rebeccarivers4797 2 года назад
I tried downloading and it seems like you have your click callbacks messed up. Clicks only work on the menu and it only moves the map. I think you just accidentally attached both to the menu maybe.
Далее
Much bigger simulation, AIs learn Phalanx
29:13
Просмотров 2,6 млн
Turning bugs into Art
7:43
Просмотров 193 тыс.
Nice bug
3:07
Просмотров 989 тыс.
Artificial Life. The battle of clans
19:34
Просмотров 453 тыс.
1000 Cockroaches Versus 1000 Ants... Who Will Win?
11:10
Coding Adventure: Ant and Slime Simulations
17:54
Просмотров 1,8 млн
C++ Ants Simulation 5, Ants Fight
9:24
Просмотров 1 млн
AI Learns to Walk (deep reinforcement learning)
8:40
Индуктивность и дроссель.
1:00