Matrices and Transformations - Math for Gamedev

Поділитися
Вставка
  • Опубліковано 19 чер 2024
  • 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 роки тому +28

    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 роки тому +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 роки тому +52

    This is some Khan Academy / 3blue1brown quality content right here. Amazing work. The visualizations are incredible.

    • @ashraful01
      @ashraful01 9 місяців тому +1

      Actually a Khan Academy and 3blue1brown combination

  • @bigg2326
    @bigg2326 3 роки тому +29

    this is truly a goldmine, i love it so much

  • @lucalaure547
    @lucalaure547 Рік тому +2

    Exactly the video I was looking for, super useful stuff!

  • @learningforever957
    @learningforever957 Рік тому +1

    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 роки тому +1

    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 роки тому +1

      I'm sorry it took me so long. Thank you for always being so supportive!

    • @CosmicComputer
      @CosmicComputer 4 роки тому +1

      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

  • @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

  • @raunaksrarf1179
    @raunaksrarf1179 2 роки тому +1

    I had 100 doubts, and u sir reduced it to NONE

  • @VictorOrdu
    @VictorOrdu Рік тому

    My word! This is it!!

  • @martinsanchez-hw4fi
    @martinsanchez-hw4fi Рік тому

    Awesome Video. Which software do you use for the visuals and animations?

  • @ferudundogusyilmaz5659
    @ferudundogusyilmaz5659 8 місяців тому +1

    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?

  • @gostan2718
    @gostan2718 Рік тому

    Excellent video! But do these rotaion matrices has gimbal lock?

  • @hugoespinosa1356
    @hugoespinosa1356 2 роки тому +1

    Excellent video! I love it. How did you make it?

    • @FloatyMonkey
      @FloatyMonkey  2 роки тому +1

      Thanks! It's all made in PowerPoint, the morph transition does a lot of the heavy lifting.

  • @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.

  • @joshuamora411
    @joshuamora411 3 роки тому +1

    I have 0 experience with coding and this video opened my eyes to such a range of possibilities and optimiations THANKS

  • @Khan-bq8qc
    @Khan-bq8qc 3 роки тому +5

    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

  • @ricardohnn
    @ricardohnn 2 роки тому

    omg this might be the best explanation video for the rotation matrix... i wonder why it has so few likes...

  • @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

  • @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.

  • @SquareTales
    @SquareTales 3 роки тому +1

    Lol only 200 views? I mean this is very special content but very well made. Thanks a lot.

  • @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?

  • @hlosche
    @hlosche 3 роки тому

    omg, u are my heaven today.

  • @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 роки тому +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.

  • @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

  • @ian.ambrose
    @ian.ambrose Рік тому

    Excuse me, why didn't you include matrix reflection?

  • @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.

  • @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.

  • @mohamadchouacha2539
    @mohamadchouacha2539 Рік тому

    Is this useful for programming games😇

  • @chorkaniitv3386
    @chorkaniitv3386 8 місяців тому

    Please become a teacher u are good

  • @danieljee8670
    @danieljee8670 3 роки тому +1

    My brain sucks.

  • @nic_bo0353
    @nic_bo0353 Рік тому

    why no one explain visually transpose Matrix 😭

  • @RagibMahirAshhab-sn8qv
    @RagibMahirAshhab-sn8qv 10 днів тому

    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 роки тому +7

      Bruh watch his vectors video. He mentioned that in the beginning.