Matrices and Transformations - Math for Gamedev

  Рет қаралды 71,402

FloatyMonkey

FloatyMonkey

Күн бұрын

Patreon: / floatymonkey
Discord: floatymonkey.com/discord
Instagram: / laurooyen
00:00 Linear Transformations
03:30 Identity Matrix
04:15 Scaling
05:01 Rotating
06:35 Translating
09:36 Matrix Multiplication
13:58 3D Transformations
#math #matrix

Пікірлер: 56
@FloatyMonkey
@FloatyMonkey 4 жыл бұрын
I can't hear êx or êy anymore after making this video. Somewhere in the future, I'll probably make a part two which will discuss more advanced matrix operations e.g. determinant, inverse, ...
@erwinschrodinger2320
@erwinschrodinger2320 3 жыл бұрын
I know it’s been a year but this series is super helpful! Hopefully one day we will get a part 2.
@iagolijo4470
@iagolijo4470 Жыл бұрын
Can you tell me what program do you use for your videos please?
@dandymcgee
@dandymcgee 4 жыл бұрын
This is some Khan Academy / 3blue1brown quality content right here. Amazing work. The visualizations are incredible.
@ashraful01
@ashraful01 9 ай бұрын
Actually a Khan Academy and 3blue1brown combination
@bigg2326
@bigg2326 3 жыл бұрын
this is truly a goldmine, i love it so much
@lucalaure547
@lucalaure547 Жыл бұрын
Exactly the video I was looking for, super useful stuff!
@learningforever957
@learningforever957 Жыл бұрын
Im clapping with my ears. You made me understand them so easily. Forever thankful, thank you so much mate. Insta subscribed, awesome content.
@user-qv6xz9wk7g
@user-qv6xz9wk7g 3 жыл бұрын
Amazing work! you saved me, Thanks a lot!
@khellstr
@khellstr 2 жыл бұрын
Thank you. This was very illuminating.
@CosmicComputer
@CosmicComputer 4 жыл бұрын
I was pining for another entry into the series, can’t wait to watch this when I get home from work! Thanks for awesome content as always!
@FloatyMonkey
@FloatyMonkey 4 жыл бұрын
I'm sorry it took me so long. Thank you for always being so supportive!
@CosmicComputer
@CosmicComputer 4 жыл бұрын
FloatyMonkey always! It’s only a matter of time before these blow up, they are too good not too, this type of content is sorely missing in the indie community imo. Game dev maths from theory to practice is a void that definitely needs filled!
@akstis4183
@akstis4183 2 жыл бұрын
Super useful stuff. THANKS
@raunaksrarf1179
@raunaksrarf1179 2 жыл бұрын
I had 100 doubts, and u sir reduced it to NONE
@diop18
@diop18 11 ай бұрын
I absolutely love your explanations!!!! This is just what I was looking for!!!!! How did you do the visuals?
@wsadowygosc3741
@wsadowygosc3741 Жыл бұрын
Great stuff
@VictorOrdu
@VictorOrdu Жыл бұрын
My word! This is it!!
@martinsanchez-hw4fi
@martinsanchez-hw4fi Жыл бұрын
Awesome Video. Which software do you use for the visuals and animations?
@hugoespinosa1356
@hugoespinosa1356 2 жыл бұрын
Excellent video! I love it. How did you make it?
@FloatyMonkey
@FloatyMonkey 2 жыл бұрын
Thanks! It's all made in PowerPoint, the morph transition does a lot of the heavy lifting.
@joshuamora411
@joshuamora411 3 жыл бұрын
I have 0 experience with coding and this video opened my eyes to such a range of possibilities and optimiations THANKS
@gostan2718
@gostan2718 Жыл бұрын
Excellent video! But do these rotaion matrices has gimbal lock?
@ricardohnn
@ricardohnn 2 жыл бұрын
omg this might be the best explanation video for the rotation matrix... i wonder why it has so few likes...
@yolamontalvan9502
@yolamontalvan9502 4 ай бұрын
Thank you professor. I didn’t know how importan were the matrices in game development. You forgot to mention what software you used to make those amazing 2D and 3D graphics.
@ferudundogusyilmaz5659
@ferudundogusyilmaz5659 8 ай бұрын
Great video. Only have one question. If you first shear and then rotate, to project it into the first coordinate system, you first have to multiply with rotation matrix and then shear matrix. You did it reverse. Why?
@Khan-bq8qc
@Khan-bq8qc 3 жыл бұрын
this video is really good, you cleared many of my questions I'm still not sure how all of this will be applied to game deving tho, if anyone could give me an example I'd be very glad
@hlosche
@hlosche 3 жыл бұрын
omg, u are my heaven today.
@SquareTales
@SquareTales 3 жыл бұрын
Lol only 200 views? I mean this is very special content but very well made. Thanks a lot.
@truthphilic7938
@truthphilic7938 3 жыл бұрын
Which applications did you use to make the graphical contents?
@FloatyMonkey
@FloatyMonkey 3 жыл бұрын
It's all made in PowerPoint, the morph transition does a lot of the work.
@ally6438
@ally6438 Жыл бұрын
Does multiplying different translation matrixes work? Because they aren’t linear?
@orangasli2943
@orangasli2943 Жыл бұрын
For translation matrix what is the difference between t and v
@glaze4629
@glaze4629 Жыл бұрын
When rotating, why does the green vector x coordinate is -1 * sin instead of sin? is it because it ended up in the negative side of x axis? Is there another rule to explain this?
@ukwuomatochukwu3947
@ukwuomatochukwu3947 Жыл бұрын
Ya, I think that's the reason there's no other.
@trousersnake81
@trousersnake81 2 жыл бұрын
Questions at 15:00 : (1) Should those three rotation matrices also have the fourth columns and rows as the previously shown scaling and translation matrices have? (2) I thought there was a matrix that could rotate around any arbitrary axis, is that not a thing?
@FloatyMonkey
@FloatyMonkey 2 жыл бұрын
1. They're not required but you could write them. In that case you add a row of zeros to the right and bottom but have to make sure the bottom-right element is a one. Essentially you 'paste' the 3x3 rotation matrix into a 4x4 identity matrix. 2. You get this matrix by multiplying the shown three primary rotation matrices. The result is still a 3x3 matrix but writing it symbolically with sines and cosines gets really long and would've been a mess to put in the video ;)
@trousersnake81
@trousersnake81 2 жыл бұрын
@@FloatyMonkey 2. Thanks for the reply!! So, then would those three component rotations actually be the projection of theta into the planes perpendicular to those axes? I was trying to multiply them out as you said, but then I realized that I didn't know if those were all the "same theta", and I found this insanity on wikipedia en.wikipedia.org/wiki/Rotation_matrix#Rotation_matrix_from_axis_and_angle and en.wikipedia.org/wiki/Transformation_matrix#Examples_in_3D_computer_graphics , I'm trying to figure out how this actually works so i can try to program higher dimensional rotations lol, it just keeps getting worse and worse hahaha
@FloatyMonkey
@FloatyMonkey 2 жыл бұрын
Yep, don't tell me about those rabbit holes ;) The formulas you found on Wikipedia are both the same and are used to rotate around an arbitrary axis (given by a unit vector). Another way to create arbitrary rotation matrices is by multiplying the 3 elementary ones from my video. In that case theta is different for each matrix. You basically construct a rotation matrix from Euler angles instead of an axis and an angle as in the Wikipedia articles. Hope this clears things up.
@alexh1687
@alexh1687 2 жыл бұрын
@alntruisrtbredford
@alntruisrtbredford 2 жыл бұрын
9:25 Why is that? If we think about vector as a point it is ok. But if the vector is vector in 3d then it wil be scaled and not translated.
@ian.ambrose
@ian.ambrose Жыл бұрын
Excuse me, why didn't you include matrix reflection?
@papercolor8259
@papercolor8259 Жыл бұрын
how you make the animation in the video? ppt?
@FloatyMonkey
@FloatyMonkey Жыл бұрын
Yep, it's all PowerPoint, the morph transition gets you quite far.
@papercolor8259
@papercolor8259 Жыл бұрын
@@FloatyMonkey I thank you should make a video about how to make video tutorial by ppt! that would be very helpful,Thanks
@mohamadchouacha2539
@mohamadchouacha2539 Жыл бұрын
Is this useful for programming games😇
@jonassandstedt
@jonassandstedt 4 ай бұрын
Im sorry. Cant read math notations. Does anyone has a similar practical example using some C# math library instead? Would help me as a gamedev more than this.
@danieljee8670
@danieljee8670 3 жыл бұрын
My brain sucks.
@chorkaniitv3386
@chorkaniitv3386 8 ай бұрын
Please become a teacher u are good
@nic_bo0353
@nic_bo0353 Жыл бұрын
why no one explain visually transpose Matrix 😭
@RagibMahirAshhab-sn8qv
@RagibMahirAshhab-sn8qv 9 күн бұрын
not everyone will come here for game dev.
@atulminj8084
@atulminj8084 2 ай бұрын
Your mouth asmr sound is irritating And disturbing . If you are willing to you should improve your audio setup qualities or change it. Thankyou .
@Boxing_Gamer
@Boxing_Gamer 2 жыл бұрын
You already lost me at the hats, which you didnt bother much to explain. What is transformed, the coordinate system or the arrow? Gibberish
@6LayersDeep
@6LayersDeep 2 жыл бұрын
Bruh watch his vectors video. He mentioned that in the beginning.
Dot products and duality | Chapter 9, Essence of linear algebra
14:12
3Blue1Brown
Рет қаралды 2,4 МЛН
Visualize Different Matrices part1 | SEE Matrix, Chapter 1
14:51
Visual Kernel
Рет қаралды 49 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,7 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,3 МЛН
In Video Games, The Player Never Moves
19:21
Josh's Channel
Рет қаралды 459 М.
What are affine transformations?
4:50
Leios Labs
Рет қаралды 86 М.
Everything You Need to Know About VECTORS
17:42
FloatyMonkey
Рет қаралды 1 МЛН
Perspective Projection Matrix (Math for Game Developers)
29:13
This Is the Calculus They Won't Teach You
30:17
A Well-Rested Dog
Рет қаралды 3 МЛН
The Math behind (most) 3D games - Perspective Projection
13:20
Brendan Galea
Рет қаралды 370 М.
Matrix Transformations
14:26
1st Class Maths
Рет қаралды 60 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,7 МЛН