interesting approach, i just used the 2point vector form, and shuffled them around to get the intersection point. It's maybe a little bit easier. like (y2-y1)/(x2-x1) * (x-x1) *y1. Shorter, less to calculate.
@Radu4 күн бұрын
Nice work :-)
@Nova_The_Beyonder5 күн бұрын
Thankyou Radu for giving A+ Educational content.
@Radu4 күн бұрын
You're welcome :-)
@_MohamedNageh5 күн бұрын
Hi Radu, I hope you are doing well. I'm still working on the code from the self driving car phase 2. Soon enough I'm expecting to send you a link with the touches I made here and there (hopefully you are gonna like them :-). I'm writing to you because I have a project I'm have to work on in the meantime which is an automatic speech recognition model built from scratch for Arabic language. The thing is I don't know where to start based on some research I did there have to be an NLP model as well as CTC model alongside the main model. I know it's kinda irrelevant to the sequence you are teaching us on and definitely I would understand if you don't have the time for it but if you can help with it (maybe a surprise video in the middle of some week explaining this topic) it would be so appreciated. Best wishes.
@Radu4 күн бұрын
Wow, really curious to see what you'll do with Phase 2 :-) I don't know what CTC is (just googled it and it's the first time I hear about such a thing). So, I won't teach anything with it anytime soon, for sure. I only teach things I've been using for years so I really understand them and can do my own spin on things :-)
@_MohamedNageh4 күн бұрын
@@Radu I appreciate your reply and I totally understand. About phase two: oh you will see just wait for it XD
@devperatetechno81515 күн бұрын
very interesting
@Radu4 күн бұрын
I think so too :-)
@2difficult2do6 күн бұрын
Thaks, Radu, it's really interesting ☝️😼👍
@Radu4 күн бұрын
Glad you think so :-)
@danielchaves62656 күн бұрын
I started learning some really interesting things after I started following you. In addition to improving my knowledge in mathematics and English. Thanks! 😊😊
@Radu4 күн бұрын
Really happy to hear :-) Thanks for watching!
@juancamacho4796 күн бұрын
Hey Radu, a suggestion when you metioned about testing this on your phone, there Is no need to host it online, in VScode if you open the terminal there is a tab for "PORTS" and you can then just use that link it generates when you forward the port to see it on your phone, it is a lot easier than trying to get the pc's network and IP etc :). also, will you ever try doing a game with an engine like Unity? I feel like you can go really into depth explaining to new game devs how the code works with the GameObjects etc. Thank you again for your free content, amazing like always.
@Radu4 күн бұрын
Really? Cool! I'll have to test that. Do they need to be on the same WiFi or something like that? About Unity, I don't know... I like teaching more fundamental things than getting into the details of a particular engine or framework. But maybe someday!
@juancamacho4793 күн бұрын
@@Radu i see! :) and when you forward the port from the terminal you can share it with anyone around the world including yourself haha, doesn't have to be in the same network.
@keerthiseelanj15536 күн бұрын
Can you upload video related on games based on draggable
@Radu4 күн бұрын
What do you mean?
@keerthiseelanj15534 күн бұрын
@@Radu related to drag and drop
@christian-schubert6 күн бұрын
Let's get this project across the Finnish line. Get it? Because Radu is
@CodeNascher_5 күн бұрын
👐 NO! No, no, no 👐
@Radu4 күн бұрын
Now I wish I used this one :-D
@Radu4 күн бұрын
:-))
@aoukrad6 күн бұрын
Me watching the video: 🤯 Also, me testing the game on my phone: 😵💫🥴 😂 Thanks Radu for the informative content!
@Radu6 күн бұрын
Haha :-) Curious, how did it work on your phone?
@aoukrad6 күн бұрын
@@Radu the test went well, but there was a bit of a headache-inducing experience when rotating the tilt. Overall though, great experience.
@crsimp97906 күн бұрын
Bro, you r cool. Claps for Scandinavia
@Radu6 күн бұрын
Haha, thanks :-)
@mdsalahuddin464646 күн бұрын
Awesome 🔥
@Radu6 күн бұрын
Thanks 🔥
@ChandrashekarCN6 күн бұрын
💖💖💖💖
@Radu6 күн бұрын
:-)
@santiagocalvo6 күн бұрын
amazing content as always radu!! You are the best!
@Radu6 күн бұрын
Thank you :-)
@MathMatrixBox6 күн бұрын
It's not working on the phone, the canvas is rotating instead in a fidgy way.
@Radu6 күн бұрын
The canvas needs to rotate in the opposite direction so you can still see the game right-side up. If it fidgets too much, it's because the sensor on the device is not very precise, or, perhaps the framerate at which your phone browser communicates with the sensor is too low... You can play with the smoothness setting I taught in the video and 'soften' the fidgeting at the cost of lag in rotation. Really... this control would be best implemented in a native way, not in the browser... but I wanted to teach how something like this works in our current codebase so... it is what it is. Btw: I tested on several phones and one of them was like you described.
@MathMatrixBox6 күн бұрын
@@Radu thank you
@AZHARakaGoat6 күн бұрын
Nice 🎉❤
@Radu6 күн бұрын
Thanks :-)
@evertongrant28147 күн бұрын
This is excellent, you mentioned about left click and right click remembering the difference you can solve this using enumerated code..
@Radu6 күн бұрын
I can't quite follow what you mean by enumerated code...
@shyamnarayanpandey74958 күн бұрын
can i get the source code please
@Radu6 күн бұрын
Unfortunately, I lost it. But I'll post a video where I rename this project in a simpler way (in the summer). I'll share the code for that one.
@Rahul-lg1nw9 күн бұрын
28:00 we can fix that behavior by adding this this.canvas.addEventListener( "touchmove", (evt) => { evt.preventDefault(); }, { passive: false } );
@pizdaxyu9 күн бұрын
lerp util proven to be very useful
@Radu9 күн бұрын
Indeed it has :-)
@adilsonbuset73810 күн бұрын
Vos cours sont incroyables.
@Radu9 күн бұрын
Merci beaucoup. Je suis content que tu les aimes! :-)
@anwerjivani154710 күн бұрын
great work. he should have a million subscribers
@Radu10 күн бұрын
Thanks :-)
@SeraphicFrost11 күн бұрын
how can i make sure that i m actually learning some and not copy pasting though i copy paste ur code by watching it but i do it so i can play around with it to understand what going on beneath.
@Radu10 күн бұрын
Yeah... coding along is usually not enough. Modifying some things is the way to go! I also recommend you have a look at phase 3 of the course (the Understanding AI playlist on my channel). There we learn how and why the neural network works by playing with it (a lot).
@SeraphicFrost10 күн бұрын
@@Radu well i have good grip over C++ and Im planning to implement phase1 in c++ as side project using chili 's directX frameWork.
@winniethepooh922611 күн бұрын
I think it is important to teach kids about coding and programming because most of people just get frustrated and yell at malfunctioning computers. However, I was only 16 years old before I wrote my first code, I wish the future generations could write codes earlier than me.
@Radu10 күн бұрын
:-) haven't actually seen anyone yelling at a computer, but I know what you mean
@noelcuillandre229511 күн бұрын
Merci !
@Radu10 күн бұрын
Thank you :-)
@eugeniogonzato12 күн бұрын
Radu: "Small thinks like this are what makes interface not just good, but really good" - I love you
@Radu11 күн бұрын
:-)
@aazizim12 күн бұрын
Bu neydi ulan böyle.
@Radu11 күн бұрын
Welcome to the channel :-))))
@SeraphicFrost12 күн бұрын
how line slope animation is related to y = mx + c in our case and how should i visualize it to understand?
@Radu12 күн бұрын
I recommend you watch phase 3 of the course. The 'Understanding AI' playlist on the channel. The first few lessons there talk about the math behind neural networks. And you can watch that now with no problem. It doesn't depend on phase 2 of the course.
@SeraphicFrost12 күн бұрын
@@Radu sure will do that, well i want to master machine learning, and have no idea how to do that where to learn what to learn. I m thinking of completing self driving car and then ur machine learning course and leaning some maths from 3b1b. is that right approach for now as a beginner who knows how to make simple 2d stuff in directx using c++
@Radu11 күн бұрын
@SeraphicFrost if you want to understand how things work, that sounds like a good plan. But keep in mind that once you know what you're doing, switching to python gives you access to a lot of advanced methods, already implemented in various libraries.
@mayansstudios12 күн бұрын
sir, what about 3d like webgL, three.js, Babylon.js. pleace make a video about 3d in future
@Radu12 күн бұрын
I like teaching how things work... not how to use libraries that do the job. I have few webgl / three.js related videos (older ones) somewhere on the channel, but I don't plan to make new ones like that anytime soon. Some people did port the self-driving car code from phase 1 in 3d environments (like three js). I link to their code somewhere in phase 2 (when we generate the buildings and the trees, I think).
@mayansstudios10 күн бұрын
@@Radu thank you sir and i am a big fan of your teaching
@VR_Wizard12 күн бұрын
42:29 I like the creative idea of the anonymes artist to give each label a special touch. 😅
@Radu12 күн бұрын
:-))
@dastan33113 күн бұрын
Amazing!!!
@Radu12 күн бұрын
Thanks!! :-)
@alvarobyrne13 күн бұрын
joy to the world!
@Radu12 күн бұрын
Haha, glad you like it :-)
@firefox_tn181513 күн бұрын
Thank you Radu really. I want to be a channel member but i can't pay online in my country (I will when I'm abroad). Nonetheless you are a true professor and thank you for your hard work.
@Radu12 күн бұрын
Don't worry about it... I don't really care about getting subscribers or members. I set it up because some people say they want to thank me somehow and I decided to offer a way to do it.
@gregorurbanek514613 күн бұрын
given n points and the rules (max one edge between p1 and p2 and edges connecting the same point are forbidden), then the max number of edges is given by the sum(1<=i<=n) i which is n*(n+1)/2 - so for 4 point there will max be 4*5/2=10 edges, for 6 points 30 egdes , etc.
@Radu12 күн бұрын
Almost. Try drawing those special cases (for 4, 5 and 6 points) and see what the formula should really be.
@2difficult2do13 күн бұрын
Thank you, Radu, for the detailed explanation and useful video instructions. When I follow your code, many things become clearer to me.
@Radu12 күн бұрын
Great to hear! :-)
@cazpfitl13 күн бұрын
Thank you again professor, this exposition was great! 👌👌👌
@Radu12 күн бұрын
Glad you liked it! :-)
@catakuri667813 күн бұрын
i think the smooth camera gives the speed effect because it looks like the camera is making effort to catch up to you
@Radu12 күн бұрын
You are probably right. It also makes an 'effort' to break so it doesn't 'hit' the car when it stops.
@pragyanchakravarty76513 күн бұрын
Thank You Sir. Big Fan
@Radu12 күн бұрын
Thanks for watching :-)
@ChadDeveloper13 күн бұрын
Such a genius, you even take time to reply to almost all of your comments, amazing bro. Hope your channel grows :)
@Radu12 күн бұрын
I try to reply to all of them :-) But if the channel grows I won't be able to :-/
@DanielJoseAutodesk13 күн бұрын
🤣🤣🤣🤣🤣🤣Started excited about the extrusion, and looks at the trees and... Ok ...We'll take care of the trees later... 🤣🤣🤣🤣😂👍
@Radu12 күн бұрын
Spoiler alert. I forgot about the trees so I never fix them :-) But extruding them as pyramids, with one point at the top should be easy after you see how we make the car look nicer in the last lesson!