Skip to main content
added 245 characters in body
Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31

As DMGregory commented, your model_matrix and view_matrix are in wrong order in your shader code. If you look at the tutorial's shader code, you'll see your mistake.

I really liked this tutorial about matrices. It simply explains how the order of transformations and rotations should be. There is also couple great general explanations about how graphics pipeline works in computerphile's channel on youtube, including information about matrices.

MVP matrix order MVP steps illustrated

As DMGregory commented, your model_matrix and view_matrix are in wrong order in your shader code. If you look at the tutorial's shader code, you'll see your mistake.

I really liked this tutorial about matrices. It simply explains how the order of transformations and rotations should be.

MVP matrix order MVP steps illustrated

As DMGregory commented, your model_matrix and view_matrix are in wrong order in your shader code. If you look at the tutorial's shader code, you'll see your mistake.

I really liked this tutorial about matrices. It simply explains how the order of transformations and rotations should be. There is also couple great general explanations about how graphics pipeline works in computerphile's channel on youtube, including information about matrices.

MVP matrix order MVP steps illustrated

Source Link
Lasse
  • 3.2k
  • 2
  • 22
  • 31

As DMGregory commented, your model_matrix and view_matrix are in wrong order in your shader code. If you look at the tutorial's shader code, you'll see your mistake.

I really liked this tutorial about matrices. It simply explains how the order of transformations and rotations should be.

MVP matrix order MVP steps illustrated