Matrix Multiplication for 3D Rendering

  Рет қаралды 58,918

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 106
@SirajRaval
@SirajRaval 6 жыл бұрын
Matrix multiplication is a crucial concept in deep learning. Dan is a hero for making a fun video on this, amazing work!
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Thank you Siraj!!
@kaustubhmurumkar2670
@kaustubhmurumkar2670 6 жыл бұрын
wow
@tshichan
@tshichan 6 жыл бұрын
wow new info, ii thought it was in opengl only
@rushikeshdarge6115
@rushikeshdarge6115 6 жыл бұрын
Plz!!! make a video on how to use google collab complete tutorial dataset how to upload a dataset how to convert that data into training set and test set how to use that data and run neural network on google collab GPU and as always great content THANK YOU!!! ❤️
@mathewo9209
@mathewo9209 6 жыл бұрын
I haven't watched this yet, but I'm very happy that you've decided to do this video. Because I know I'm going to learn.
@Cyberfoxxy
@Cyberfoxxy 5 жыл бұрын
normally this is performed with less laughing and more weeping
@za_ozero
@za_ozero 5 жыл бұрын
This guy is smart, humble and a bit too shy. I like him overall and he is doing a beautiful job!
@mr_hexo
@mr_hexo 2 жыл бұрын
thankyou. SO MUCH. I have been trying to make 3d inverse kinematics and I just couldn't figure out how to do the 3d rotation matrix. But this video and your one about rotation and projection FINALLY MADE ME UNDERSTAND!!! Thanks so much!
@Simon000777
@Simon000777 6 жыл бұрын
If anybody's interested in learning more about linear algebra, Gilbert Strang's lectures at MIT are all on youtube!
@eugenetswong
@eugenetswong 2 жыл бұрын
FEEDBACK 1:06 This is the kind of mistake and correction that is worth leaving in the video. It tells us a bit about what we can do with a new concept. If the video becomes too professional and sanitized, then we tend to lose a lot information. Thank you so much, Mr. Train!
@lucaspetersen5074
@lucaspetersen5074 6 жыл бұрын
Dude, you totally read my mind... I was studying for linear algebra exams and thinking of how to do this in Python.
@luiza4142
@luiza4142 6 жыл бұрын
Lucas Carrijo me too, i try create a n×n determinat but i was failed
@lucaspetersen5074
@lucaspetersen5074 6 жыл бұрын
Tbm falhei kkk. Pelo jeito matrizes vão ter que ficar só nas aulas de engenharia por enquanto... No python não tá rolando
@luiza4142
@luiza4142 6 жыл бұрын
Mano hj vou tentar fazer determinante por expansão de laplace e que Deus me ajude kkkk
@cicciobombo7496
@cicciobombo7496 6 жыл бұрын
luiz alberto i made a matrix and determinant toy library in c++, it was complicated but i enjoyed it
@100Palavr
@100Palavr 6 жыл бұрын
Esses brs estão por toda a parte o/
@DogwafflDan
@DogwafflDan 6 жыл бұрын
Thanks for the review on matrix math! Gave me the incentive to get my C++ matrix class working and some direct2d.
@liquidexw
@liquidexw 6 жыл бұрын
well, this tutorial is going to be very useful for me. now I'll finally know how to do image processing with convolution! thanks, Dan!
@vjself
@vjself 3 жыл бұрын
The bell makes this video all the better.
@monomere
@monomere 5 жыл бұрын
OMG thanks! I'm using this video for my own game engine sort of thing
@SweetChuckPi
@SweetChuckPi 6 жыл бұрын
Matrix Math is one of those things where I find it extremely helpful to more descriptively name my iterators. ie ithColOfA jthRowOfA etc...
@mikee.
@mikee. 6 жыл бұрын
Very interesting, wanted to get into matrices and 3d rendering a while back, going to officially start now! :P
@broadcastbrian2560
@broadcastbrian2560 6 жыл бұрын
Can't wait for the upcoming 3D projection & rotation videos! Thank you.
@ERsandipanRoyThakur
@ERsandipanRoyThakur 6 жыл бұрын
Its simply awesome . Please carry onnnnnnnnnnñnnnnñ this type for minimum 29 times
@killereks
@killereks 6 жыл бұрын
Yes. Was waiting for this forever. I love you
@alexfish7792
@alexfish7792 2 жыл бұрын
13:09 was the best part!
@Invalid571
@Invalid571 5 жыл бұрын
5:15 to skip matrix multiplication intro and go to actual coding.
@motbus3
@motbus3 6 жыл бұрын
Ow yeah! I was just waiting for that
@kevnar
@kevnar 3 жыл бұрын
"Through the magic of the linking of the things." Only in Coding Train world is this a legitimate thought.
@nassimamrane5052
@nassimamrane5052 3 жыл бұрын
Really interesting i was exactly looking for this type of video thx i dont understood how that work now i think it 'll be more clear for me that is the last thing i have to see in programation. Even if i wanted this video in fr i dont see any difference its so very well explicated
@cocadzp1257
@cocadzp1257 6 жыл бұрын
17:52 He spoke french
@figfox2425
@figfox2425 6 жыл бұрын
"Déja-vu", "voila", "je ne sais quoi" etc... French expression english speakers use sometimes.
@deltakid0
@deltakid0 4 жыл бұрын
It's actually 17:50
@o_master362
@o_master362 Жыл бұрын
how do you get PVectors in java? I cant figure out how to get them.
@jcponcemath
@jcponcemath 6 жыл бұрын
You are a genius! Great video... Loved the reference about Sisyphus... hahahaha :)
@kineticsquared
@kineticsquared 6 жыл бұрын
Loved that reference as well. Now I will think of it on some of those days when it seems I am just spinning my wheels.
@DogwafflDan
@DogwafflDan 6 жыл бұрын
Can't wait to watch this!
@igorgrischenko6518
@igorgrischenko6518 6 жыл бұрын
Так радуется, будто уже в готовом проекте заработало)
@ozzydapg
@ozzydapg 6 жыл бұрын
Great you back to #processing language!!! I love that!
@ethandavidson3395
@ethandavidson3395 6 жыл бұрын
When is the p5.js version of the 4d to 3d repository going to be made available? I am so curious about it.
@atrumluminarium
@atrumluminarium 6 жыл бұрын
How hard would it be to implement matrix multiplication with WebGL? Kinda how TensorflowJS does
@d_vibe-swe
@d_vibe-swe 5 жыл бұрын
Will this do the same as applyMatrix() ? Was that function written after this video?
@joaquimjesus6134
@joaquimjesus6134 2 жыл бұрын
ok.. but i miss some information: 1 - you use only 0's and 1's on projection.. they must be padron or i must change them? 2 - you take off the 'Z', but it's used? i'm confused.. sorry
@ccuuttww
@ccuuttww 6 жыл бұрын
be more specific this topic is about linear transformation Linear algebra not only for 3D rendering it is very very useful in machine learning data processing encrypting and it can also part of calculus problem it is a 100% must learn topic
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Thanks for the comment!
@westonkomar3767
@westonkomar3767 3 жыл бұрын
Very helpful, thank you!
@jeroenmulder1400
@jeroenmulder1400 4 жыл бұрын
Is there anywhere I can find the source code I am trying to follow what is going on but I keep on getting an error can't manage to fix it :(
@DustinGunnells
@DustinGunnells 6 жыл бұрын
#Genius! You are Awesome! I share your channel with my friends family and my preteen son.
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Thank you!
@Nezteb
@Nezteb 6 жыл бұрын
I wonder if you'll use BabylonJS, ThreeJS, or something less abstracted. I'm excited to find out! :D
@victorwei6053
@victorwei6053 6 жыл бұрын
Can you do a video on GPU accelerated matrix multiplication? That would be greatly appreciated!
@int16_t
@int16_t 4 жыл бұрын
Use OpenCL in C?
@Wunderwaffe9828
@Wunderwaffe9828 6 жыл бұрын
ENTER THE MATRIX!
@MohamedFofanah-s9p
@MohamedFofanah-s9p Жыл бұрын
What is mind maps in somry
@Zakdaman97
@Zakdaman97 6 жыл бұрын
Why was this done in processing and not p5.js? I would really appreciate help in that regard.
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
I'll do a port for p5.js, you can file an issue at github.com/CodingTrain/website. Also I have a whole series on Matrix math in JS already! kzbin.info/www/bejne/q4TdeJecmbSifZo
@Zakdaman97
@Zakdaman97 6 жыл бұрын
@@TheCodingTrain bit late but, thankyou!
@silvertakana3932
@silvertakana3932 3 жыл бұрын
When my last brain cell still trying to hang on to this video
@annevandalej496
@annevandalej496 6 жыл бұрын
Yes!!! Also waiting for more ml5 stuff =:D
@etiennewille5661
@etiennewille5661 6 жыл бұрын
Whats her notebook?
@saad-ul4mr
@saad-ul4mr 6 жыл бұрын
you work on js , how can I translate it to python
@mikee.
@mikee. 6 жыл бұрын
This is processing which is Java based :)
@mikee.
@mikee. 6 жыл бұрын
Also you can use numoy's matmul function, docs.scipy.org/doc/numpy/reference/generated/numpy.matmul.html
@the9tailsupersaiyan
@the9tailsupersaiyan 6 жыл бұрын
Mikee you can also download a python package for processing so that you can code in the processing ide with the python language.
@jumpierwolf
@jumpierwolf 6 жыл бұрын
Instead of just copying the code, understand it and then write it in Python
@leeqjqjww2014
@leeqjqjww2014 6 жыл бұрын
How can i with P5.Js got a joob?or just a small money?
@sarangs8441
@sarangs8441 6 жыл бұрын
When is the MNIST coding challenge coming?
@figfox2425
@figfox2425 6 жыл бұрын
has been done already, no ?
@sarangs8441
@sarangs8441 6 жыл бұрын
@@figfox2425 it is in a live stream but has lot of mistakes as per the comments which Dan himself verified
@kaikoda8709
@kaikoda8709 6 жыл бұрын
What computer Language is he typing with? Is this only for Mac?
@liquidexw
@liquidexw 6 жыл бұрын
this is processing, a java-based programming environment. the website is processing.org, it is available for multiple platforms including windows 32/64, macOS, linux 32/64/armhf
@theofficialjizzy
@theofficialjizzy 4 жыл бұрын
I dont know how this is going to help to rob the Spanish bank Professor...
@Holobrine
@Holobrine 6 жыл бұрын
22:10 First to second? No. It’s second to third.
@syonukr
@syonukr 4 жыл бұрын
Writing “colums” saves 1 byte
@amichow
@amichow 6 жыл бұрын
Has anyone else noticed that he wrote 2x1 Instead of 3x1
@TheGamingDinosaurRoblox
@TheGamingDinosaurRoblox 11 ай бұрын
very cool video but pls get a standing desk or laptop stand so you don’t have to look down to your laptop its bad for your neck
@AleksanderFimreite
@AleksanderFimreite 6 жыл бұрын
I'm slightly triggered that you didn't stay consistant and name your function matlog. But to be fair, I think that if you are someone capable of explaining what goes on while in a 3-layer for-loop you get to do what ever you want ^^
@orangasli2943
@orangasli2943 2 жыл бұрын
I think that creating a class is much better.. Better to manage and easier to write And visualize than using 2d array.. If for example the matrix becomes 3 by 3 matrix Suddenly you need 3d array and so on..and new function
@salmanmuhammad8159
@salmanmuhammad8159 4 жыл бұрын
I wish you were my teacher
@thewelder3538
@thewelder3538 Жыл бұрын
Wow, watching this was like watching a blind man looking at a porno. A triple nested loop that you could do in a single loop, or not even use a loop at all and do it in a single operation. A classic case of... "how can you tell that I'm a Java Script coder?" No one will ever learn how to do proper matrix multiplications watching this.
@panjak323
@panjak323 2 жыл бұрын
What is this language ?
@nolanbuval6295
@nolanbuval6295 5 жыл бұрын
Ok, my brain cannot do that
@Holobrine
@Holobrine 6 жыл бұрын
19:18 Not lazy enough. return { {v.x}, {v.y}, {v.z} };
@franeklubi
@franeklubi 6 жыл бұрын
Nice!
@beaverjoe9171
@beaverjoe9171 6 жыл бұрын
OMG ITS JAVA
@callimero2731
@callimero2731 6 жыл бұрын
Why did you choose Java?, why not Python 🤔
@oshotz
@oshotz 6 жыл бұрын
DRagunov DZ It’s the language that he mainly uses (with the exception of JS, which he uses the most).
@jumpierwolf
@jumpierwolf 6 жыл бұрын
Same reason why anyone would use python, it's preference.
@engdoretto
@engdoretto 6 жыл бұрын
Why java instead of javascript?
@rraf666
@rraf666 6 жыл бұрын
wow
@culan_SCP
@culan_SCP Жыл бұрын
S I S I P H U S
@homexdYtb
@homexdYtb 6 жыл бұрын
nice
@AE-yr6mo
@AE-yr6mo 4 жыл бұрын
Similar teaching style to Miss Chokesondick.
@danielesquivel3155
@danielesquivel3155 3 жыл бұрын
jajajajaj me cago de risa eso que hablo español
@PandoraMakesGames
@PandoraMakesGames 6 жыл бұрын
Hi, I make AI videos too now (Big fan of Dan)
@stanger963
@stanger963 6 жыл бұрын
Daporan Hi
@PandoraMakesGames
@PandoraMakesGames 6 жыл бұрын
Hey! What's up
@benjamindragon598
@benjamindragon598 6 жыл бұрын
MOAR JAvAva vIdeOEsR!1!!!
@trol9880
@trol9880 6 жыл бұрын
Second
Coding Challenge #113: 4D Hypercube (aka "Tesseract")
43:53
The Coding Train
Рет қаралды 253 М.
How AI Discovered a Faster Matrix Multiplication Algorithm
13:00
Quanta Magazine
Рет қаралды 1,5 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Coding Challenge #112: 3D Rendering with Rotation and Projection
33:13
The Coding Train
Рет қаралды 210 М.
In Video Games, The Player Never Moves
19:21
Josh's Channel
Рет қаралды 470 М.
Coding Challenge 183: Paper Marbling Algorithm
32:10
The Coding Train
Рет қаралды 81 М.
Why do we multiply matrices the way we do??
16:26
Michael Penn
Рет қаралды 68 М.
The Math behind (most) 3D games - Perspective Projection
13:20
Brendan Galea
Рет қаралды 435 М.
Coding Challenge #90: Floyd-Steinberg Dithering
28:51
The Coding Train
Рет қаралды 440 М.
4D Thinking for 3D Graphics #SoME2
11:26
Maxwell Hunt
Рет қаралды 11 М.
Coding Challenge 145: 2D Raycasting
36:02
The Coding Train
Рет қаралды 647 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН