Matrices and Transformations - Math for Gamedev

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 59

  • @FloatyMonkey
    @FloatyMonkey  5 лет назад +37

    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 4 года назад +4

      I know it’s been a year but this series is super helpful! Hopefully one day we will get a part 2.

    • @iagolijo4470
      @iagolijo4470 2 года назад

      Can you tell me what program do you use for your videos please?

  • @dandymcgee
    @dandymcgee 5 лет назад +77

    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 года назад +38

    this is truly a goldmine, i love it so much

  • @amyl3697
    @amyl3697 2 месяца назад

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

  • @CosmicComputer
    @CosmicComputer 5 лет назад +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  5 лет назад +2

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

    • @CosmicComputer
      @CosmicComputer 5 лет назад +2

      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!

  • @beyzaacar1822
    @beyzaacar1822 3 месяца назад

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

  • @lucalaure547
    @lucalaure547 2 года назад +3

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

  • @raunaksrarf1179
    @raunaksrarf1179 3 года назад +3

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

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

  • @ricardohnn
    @ricardohnn 3 года назад

    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?

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

  • @diop18
    @diop18 Год назад

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

  • @hugoespinosa1356
    @hugoespinosa1356 3 года назад +1

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

    • @FloatyMonkey
      @FloatyMonkey  3 года назад +1

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

  • @ethiomellos1088
    @ethiomellos1088 25 дней назад

    how to recorded this types of animation please tell me please

  • @Mijdax
    @Mijdax 4 года назад +1

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

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

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

  • @alntruisrtbredford
    @alntruisrtbredford 3 года назад

    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.

  • @ally6438
    @ally6438 Год назад

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

  • @khellstr
    @khellstr 2 года назад

    Thank you. This was very illuminating.

  • @martinsanchez-hw4fi
    @martinsanchez-hw4fi Год назад

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

  • @orangasli2943
    @orangasli2943 2 года назад

    For translation matrix
    what is the difference between t and v

  • @yolamontalvan9502
    @yolamontalvan9502 Год назад +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.

  • @gostan2718
    @gostan2718 2 года назад

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

  • @glaze4629
    @glaze4629 2 года назад

    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 Год назад

    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.

  • @박성우-n3l
    @박성우-n3l 4 года назад

    Amazing work! you saved me, Thanks a lot!

  • @akstis4183
    @akstis4183 2 года назад

    Super useful stuff. THANKS

  • @ian.ambrose
    @ian.ambrose 2 года назад

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

  • @mohamadchouacha2539
    @mohamadchouacha2539 Год назад

    Is this useful for programming games😇

  • @hlosche
    @hlosche 4 года назад

    omg, u are my heaven today.

  • @wsadowygosc3741
    @wsadowygosc3741 2 года назад

    Great stuff

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

  • @VictorOrdu
    @VictorOrdu 2 года назад

    My word! This is it!!

  • @chorkaniitv3386
    @chorkaniitv3386 Год назад

    Please become a teacher u are good

  • @nic_bo0353
    @nic_bo0353 Год назад

    why no one explain visually transpose Matrix 😭

  • @danieljee8670
    @danieljee8670 3 года назад +1

    My brain sucks.

  • @alexh1687
    @alexh1687 3 года назад

  • @Gamz_tamil
    @Gamz_tamil 2 месяца назад

    Me studing this in 8th grade😢

  • @RagibMahirAshhab-sn8qv
    @RagibMahirAshhab-sn8qv 8 месяцев назад +2

    not everyone will come here for game dev.

    • @apexhacker346
      @apexhacker346 2 месяца назад +1

      Nope. I def have a linear algebra final in a few weeks

  • @joebulfer
    @joebulfer Месяц назад

    There is not a single line of code in this video.

  • @atulminj8084
    @atulminj8084 10 месяцев назад +1

    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 года назад +1

    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 года назад +8

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