AI Learns to Drive an F1 Car
Vložit
- čas přidán 8. 07. 2024
- My first video on CZcams taught an AI to destroy the game Stack's world record. After about 3 years, I wanted to create an AI which would successfully learn to drive. I would accomplish this using Neural Networks and a genetic algorithm.
Machine learning is a topic I've always been very interested in. Seeing how it can be applied to games is especially interesting. These networks can be used to teach game AI for varying difficulties.
To make it interesting I decided to use Formula 1 cars.
Make sure you subscribe!
Twitter: / skrelo
McLaren Formula 1 3D Model (Excalibur):
Link: skfb.ly/onIvF
● Watch my other videos
📹 Remaking Trouble In Terrorist Town | Indie Game Devlog #0 (Skrelo)
Link : • Remaking Trouble In Te...
--------------------------------------------------------------
📹 Making my First Mobile Game in ONE Day (Skrelo)
Link : • Making my First Mobile...
--------------------------------------------------------------
📹 5 Years Of Learning Game Development (Skrelo)
Link : • 5 Years Of Learning Ga...
--------------------------------------------------------------
📹 How I Made Minecraft In 1 Week Using Unreal Engine 5 (Skrelo)
Link : • How I Made Minecraft I...
--------------------------------------------------------------
● Music
♪ Starter [8 bit Dub]
Link : opengameart.org/content/start...
--------------------------------------------------------------
♪ Chill Lofi Inspired (omfgdude)
Link : opengameart.org/content/chill...
--------------------------------------------------------------
♪ Ooame (TAD: / tadon )
Link : opengameart.org/content/ooame
--------------------------------------------------------------
#gamedev #unrealengine #machinelearning #geneticalgorithm #neuralnetwork #ue4 #ue5 - Věda a technologie
can you do a full tutorial on how to make this pls pls pls
Any chance for a tutorial on this? This is amazing!!! 🤩👍
i dont really see why your videos arent blowing up more. you have great audio and narration as well as interesting video ideas and good explanations. youtube algorithm slacking ong
Hopefully soon! I'm enjoying the grind though
Because he is not diving deep in details.
I mean what type NN are you using and why.
since the premade track has curbs on boths sides in all its lenght, you might avoid the boring process of setting up walls by flagging cars running on curbs or surpassing them. I don't know UE but it's probably doable giving cars a collider underneath and checking for collisions with curbs. The collider can be smaller than tires width so they don't flag until the curb is fully overstepped
"...computer sounded like it was going to war..." that's beautiful
This is wild and easily one of the most interesting explanations of so much I’ve been curious about.
Awesome 👏 now I can finally watch my Honda Accord 2004 beat a Ferrari in a race, jokes aside, this must have been a lot of work including making and editing this video! Thank you ✨😃
Really entertaining video to watch.
Great Job Mate. I hope this video blews up too. I've started learning Python as my starting language thanks to your support. Also I'm excited for the game's development. Oh yeah it's 00:24 AM so I'm gonna sleep now. Saw your video notification so I came running (lies I took few minutes T-T). Anyways good luck for future project and videos.
Appreciate that! Get some sleep!
nice video as always
I would love to see the ai getting seriously quick
What ML tools did you use for this? Is it something anyone can use? Unity has ML-Agents for example.
Ai go brrr- meant vroom
I'm doing something very similar, how did you make the line tracers stop when they hit the wall? For me they continue through as the color green and fill up the screen
Hi Skrelo! I was just wondering, what does your fitness score look like? I programmed my own NN with Genetic Algorithm, and the AI does learn, however, it doesn't seem to try and slow down, or react to the walls near the car. My fitness score at the moment is just distance travelled along the track. Thank you in advance!
Using tensor flow ? How did I go from c++ to python ?
Maybe you could use random spawn points along the track to improve performance?
PLEASE TELL ME THERE IS A TUTORIAL WERE IT IS SHOWED HOW TO MAKE THIS?
Its an amazing video, can you do a video tutorial code to build this ai?
hi, i am implementing such a thing. I got stuck in passing line data to the genetic algorithm. Could you give me some advice?
In Unreal Engine? Make sure your neural network function accepts an array of data, my raycasts returned a float value for the distance to the wall, I'd put all of the distances into an array, and would pass that in as a parameter to the neural network function!
What language did you use?
C++ and Blueprints in Unreal Engine!
BRUH pls make a tutorial about neural network
feels like a half finished project
it didn't even learn or follow a proper racing line...............