Calculating Flow Fields for Rats in 'A Plague Tale' | AI and Games #73

  Рет қаралды 14,952

AI and Games

AI and Games

Күн бұрын

Пікірлер: 34
@Ghost_Of_SAS
@Ghost_Of_SAS Жыл бұрын
I played Plague Tale on gamepass, having seen nothing about it beforehand, so I did not even know about the rats. Imagine my reaction when I saw a thousand of them swarming towards me. that final boss in the first one is still one of the most impressive things I have seen in gaming.
@AIandGames
@AIandGames Жыл бұрын
The fact I played those final sequences on a Steam Deck at a solid 60fps is *very* impressive.
@AlanZucconi
@AlanZucconi Жыл бұрын
2:04 reminded me *so* much of the swarm of scarabs in "Tomb Raider IV The Last Revelation"! Also: "optimise the rats" is such a scary sentence to say! 🤣
@AIandGames
@AIandGames Жыл бұрын
Oh yeah, I forgot about that game. I suspect it's probably using a similar concept? I dunno, it's been so long since I played old Tomb Raider... 😅
@Battleguild
@Battleguild 8 ай бұрын
I would love to see an example of Flow Fields being used to simulate Pitch Black environments that adventurers would come across when traversing dungeons or underground caverns. I wonder if it would be less or more taxing than a traditional light/shadow system.
@Random_Dragon_Furry
@Random_Dragon_Furry 11 ай бұрын
Literally a hive mind for rats.
@matthewboyd8689
@matthewboyd8689 Жыл бұрын
Is that flow field the same way days gone had a thousand zombies at once?
@pawebernaciak1581
@pawebernaciak1581 Жыл бұрын
So you can say that this is in a way particle system, rats are particles that get their velocity to move using grid as source of their velocity. Using fields it's pretty common in film FX and there are entire type of simulation doing that ie. flip simulation(water, fluid), generalized form MPM is generalization and was used for snow on frozen. It's pretty much the same process but name is different
@AIandGames
@AIandGames Жыл бұрын
Well yes and no. Particle systems typically imply the modelling of force/velocity and possibly collision, which isn't being modelled by the flow field. There's no effort to handle the velocity or acceleration of the rats by this system. The rats all operate on their own fairly simple controller to handle speed and often ignore collisions entirely. Even then the particle system doesn't have explicit knowledge of the environment, which this is designed to do on a per-scenario basis. As mentioned earlier in the video, the smaller schools of fish in Sea of Thieves are handled by particle systems (ran as a shader no less).
@pawebernaciak1581
@pawebernaciak1581 Жыл бұрын
@@AIandGames depends on definition of particle system if we use point cloud of points that move from frame no velocity is needed. I did some detail on river for some commercial last year in pretty much exact way as you described. Difference might be you think about particle system as part of engine when I simplify it to simplest definition from papers/books as basis? Also fun fact in “Art of fluid animation” they describe how fluid sim works on bugs moving from cell to cell in apartment block.
@timbus2
@timbus2 Жыл бұрын
Damnit… now I want to play these games. (Including Micro Machines! 😂)
@lauraschlieselhuber8487
@lauraschlieselhuber8487 Жыл бұрын
My theory was that it relied on a particule system, but if feels like it's different than that, somehow. Like a cloud of points with simplified path finding instead of manual inputs for velocity and areas of actions. That's the only way for me to imagine it, but it's probably because i'm a graphic designer and no programmer lol.
@viviannavicious
@viviannavicious Жыл бұрын
It's obvious, the giant rat AI makes all of the rules to see what kind of trouble they can get into.
@LyingTube
@LyingTube Жыл бұрын
I confess flow fields hadn't entered my mind, I was fairly convinced the rats were handled as part of a fluid shader! 😄
@dainchi.
@dainchi. Жыл бұрын
Man, I'd love to see an episode on how Supcom 2 and Planetary Annihilation do their pathfinding. I remember better Pathfinding being one of the standout features of Supcom 2, to the point where it was a main marketing bulletpoint.
@Speed001
@Speed001 Жыл бұрын
Flow Feilds reminds me of the what i learned in fluid dynamics. Track a particle or a certain space-volume.
@TennessseTimmy
@TennessseTimmy Жыл бұрын
Could someone clarify, Rat checks it's position on the grid(find grid it's on)? Grid has an direction assignment? Rat moves towards direction assignment?
@stupidmonkey089
@stupidmonkey089 Жыл бұрын
yes
@Random_Dragon_Furry
@Random_Dragon_Furry 11 ай бұрын
​@@stupidmonkey089The monkey is correct.
@Bloodlinedev
@Bloodlinedev Жыл бұрын
I've just realized that the idea behind flow field pathfinding is a bit like deferred rendering. I've use this technique before for zombies, super quick and easy to implement.
@marvel626
@marvel626 Жыл бұрын
This channel is so cool and underrated. Love your content!
@zejugames5045
@zejugames5045 Жыл бұрын
Amazing video, never knew about this AI approach! Have you been following the Road to Vostok devlogs? The dev looked into various enemy AI approaches (FSM, behavior trees, etc.) and decided on a separate approach... it sounded really interesting and thought it might be of interest to you!
@AIandGames
@AIandGames Жыл бұрын
I did not know about that, but I'll be sure to check it out!
@brookslee2227
@brookslee2227 5 ай бұрын
I''ve been wondering how they achieve the rat self collision? there is no imformation about it on the internet
@Ixarus6713
@Ixarus6713 Жыл бұрын
Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. And RATS make me crazy.... Crazy? I was crazy once... They locked me in a room. A rubber room... A rubber room with RATS. *_A n d R A T S m a k e m e c r a z y . . . ._*
@TheSmurfboard
@TheSmurfboard Жыл бұрын
i smell a rat
@DrMarlboro_1
@DrMarlboro_1 11 ай бұрын
You should make a video about the rain world ai
@Salient-n7c
@Salient-n7c 11 ай бұрын
HEY!! Im only 39!!
@Megasteakman
@Megasteakman Жыл бұрын
Thanks for this! I have been wondering about this one for a while, and its fascinating! Also, Micro Machines was such a good game, haha.
@skeleton_craftGaming
@skeleton_craftGaming 11 ай бұрын
This is a really clever way of doing that, GPUs are basically optimized for doing calculations like interpolating between two vectors....
@smokeback
@smokeback Жыл бұрын
Amazing ai video as always to learn from
@benjarubio3251
@benjarubio3251 Жыл бұрын
great video
@brandyhandy4157
@brandyhandy4157 Жыл бұрын
Good job 🏆🙂🙏🏼
@anteshell
@anteshell Жыл бұрын
I'm nowhere near 40 (34 d'uh), but Micro Machines was basically an essential part of my childhood. But about the rats, when I played both games, I was certain that the rats are implemented using some kind of particle system in a flow simulation. If you manage to isolate a couple of individual rats to a unescapable corner, they behave very much like particles losing all their intelligence breaking the immersion. While this is extraordinary feat as a whole, it really only works with masses of rats and breaks down completely on individual level breaking the immersion. Although it is arguable that my curiousness already killed the immersion beforehand when I tabled the turn and started to harass the rats myself and not fault the game for it. ;D
What Makes a Game Feel Mysterious?
29:37
Game Maker's Toolkit
Рет қаралды 181 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,9 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 66 МЛН
What Makes Jack Baker and Lady Dimitrescu so Terrifying?
14:27
AI and Games
Рет қаралды 12 М.
Analysing the AI of The Last of Us Part II | AI and Games #70
28:05
How Barks Make Videogame NPCs Look Smarter | AI 101
19:33
AI and Games
Рет қаралды 24 М.
How A Navigation Mesh Works in 3D Games | AI 101
16:14
AI and Games
Рет қаралды 64 М.
Director AI for Balancing In-Game Experiences | AI 101
14:49
AI and Games
Рет қаралды 59 М.
Making of - A Plague Tale: Requiem [Behind the Scenes]
14:57
NeoGamer - The Video Game Archive
Рет қаралды 304 М.
The Greatest Game With the WORST TITLE EVER
20:04
Max Derrat
Рет қаралды 627 М.
Why Halo Infinite's Bots Play More Like Humans | AI and Games #71
22:42
Heartbreaking Ending Reactions - A Plague Tale: Requiem
51:31
ZeRakMishak
Рет қаралды 18 М.
Why is It Difficult to Make Good AI for Games?
15:00
AI and Games
Рет қаралды 68 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,9 МЛН