Matrices and Transformations - Math for Gamedev

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 57

  • @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 2 ปีที่แล้ว

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

  • @dandymcgee
    @dandymcgee 4 ปีที่แล้ว +69

    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 8 วันที่ผ่านมา

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

  • @beyzaacar1822
    @beyzaacar1822 หลายเดือนก่อน

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

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

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

  • @ricardohnn
    @ricardohnn 2 ปีที่แล้ว

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

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

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

  • @diop18
    @diop18 ปีที่แล้ว

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

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

  • @khellstr
    @khellstr 2 ปีที่แล้ว

    Thank you. This was very illuminating.

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

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

  • @ally6438
    @ally6438 ปีที่แล้ว

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

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

  • @martinsanchez-hw4fi
    @martinsanchez-hw4fi ปีที่แล้ว

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

  • @박성우-n3l
    @박성우-n3l 3 ปีที่แล้ว

    Amazing work! you saved me, Thanks a lot!

  • @akstis4183
    @akstis4183 2 ปีที่แล้ว

    Super useful stuff. THANKS

  • @gostan2718
    @gostan2718 2 ปีที่แล้ว

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

  • @orangasli2943
    @orangasli2943 2 ปีที่แล้ว

    For translation matrix
    what is the difference between t and v

  • @mohamadchouacha2539
    @mohamadchouacha2539 ปีที่แล้ว

    Is this useful for programming games😇

  • @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 4 ปีที่แล้ว

    omg, u are my heaven today.

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

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

  • @ian.ambrose
    @ian.ambrose 2 ปีที่แล้ว

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

  • @VictorOrdu
    @VictorOrdu 2 ปีที่แล้ว

    My word! This is it!!

  • @wsadowygosc3741
    @wsadowygosc3741 2 ปีที่แล้ว

    Great stuff

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

  • @yolamontalvan9502
    @yolamontalvan9502 10 หลายเดือนก่อน +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.

  • @chorkaniitv3386
    @chorkaniitv3386 ปีที่แล้ว

    Please become a teacher u are good

  • @danieljee8670
    @danieljee8670 3 ปีที่แล้ว +1

    My brain sucks.

  • @alexh1687
    @alexh1687 2 ปีที่แล้ว

  • @nic_bo0353
    @nic_bo0353 ปีที่แล้ว

    why no one explain visually transpose Matrix 😭

  • @Gamz_tamil
    @Gamz_tamil 13 วันที่ผ่านมา

    Me studing this in 8th grade😢

  • @RagibMahirAshhab-sn8qv
    @RagibMahirAshhab-sn8qv 5 หลายเดือนก่อน +1

    not everyone will come here for game dev.

    • @apexhacker346
      @apexhacker346 21 ชั่วโมงที่ผ่านมา

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

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