Hi,
I am using 4x4 matrix in my application. As Cycles uses 3x3 matrix (Transform), I am trying to map 4x4 to 3x3. Any documentation on Cycles matrix?
Thanks in advance.
Hi,
I am using 4x4 matrix in my application. As Cycles uses 3x3 matrix (Transform), I am trying to map 4x4 to 3x3. Any documentation on Cycles matrix?
Thanks in advance.
Transform
is really just a 4x4 matrix with the last row always assumed to be 0 0 0 1
. You can copy the first 3 rows from a 4x4 matrix to the 3x4 layout of Transform.
The only reason that 4th row is needed is perspective transforms, for which we have a separate PerspectiveTransform
.