Matrices and Transformations - Math for Gamedev

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 56

  • @FloatyMonkey
    @FloatyMonkey  4 роки тому +34

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

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

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

      Actually a Khan Academy and 3blue1brown combination

  • @bigg2326
    @bigg2326 4 роки тому +37

    this is truly a goldmine, i love it so much

  • @amyl3697
    @amyl3697 3 дні тому

    These videos are so helpful, they are amazing at describing these concepts! I'm so sad you aren't making them anymore.

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

    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!

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

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

  • @lucalaure547
    @lucalaure547 2 роки тому +3

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

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

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

  • @ferudundogusyilmaz5659
    @ferudundogusyilmaz5659 Рік тому +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?

  • @beyzaacar1822
    @beyzaacar1822 Місяць тому

    This video is just perfect. Thank you very much for your effort to teach

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

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

    Im clapping with my ears. You made me understand them so easily. Forever thankful, thank you so much mate. Insta subscribed, awesome content.

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

    Does multiplying different translation matrixes work? Because they aren’t linear?

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

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

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

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

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

    I absolutely love your explanations!!!! This is just what I was looking for!!!!! How did you do the visuals?

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

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

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

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

    For translation matrix
    what is the difference between t and v

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

    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.

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

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

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

      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.

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

  • @ian.ambrose
    @ian.ambrose 2 роки тому

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

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

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

    Thank you. This was very illuminating.

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

  • @jonassandstedt
    @jonassandstedt 9 місяців тому

    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.

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

    Is this useful for programming games😇

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

  • @박성우-n3l
    @박성우-n3l 3 роки тому

    Amazing work! you saved me, Thanks a lot!

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

    Super useful stuff. THANKS

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

    Please become a teacher u are good

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

    omg, u are my heaven today.

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

    My brain sucks.

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

    My word! This is it!!

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

    Great stuff

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

    why no one explain visually transpose Matrix 😭

  • @Gamz_tamil
    @Gamz_tamil 8 днів тому

    Me studing this in 8th grade😢

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

  • @RagibMahirAshhab-sn8qv
    @RagibMahirAshhab-sn8qv 5 місяців тому

    not everyone will come here for game dev.

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

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

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

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