Transformation Matrix Analysis

When the vector is used as a row matrix, it is as follows: (equivalent to the matrix in the program is stored in row priority) 

The matrix in opengl is column-first storage, that is, the vector is used as a column matrix, and the matrix can only be multiplied on the left and the column vector on the right. According to the transposition formula of matrix multiplication, the transposition of T3D in the above figure is the transformation matrix: , that \begin{bmatrix} a & d & h& l \\ b& e& i& m\\ c& f& j& n\\ p& q& r& s \end{bmatrix}is : \begin{pmatrix} l\\ m\\ n \end{pmatrix}The upper right corner is used for translation transformation and \begin{bmatrix} p & q &r \end{bmatrix}projection transformation, and the other two are the same as T1 and T4

Guess you like

Origin blog.csdn.net/u012861978/article/details/128375006