open all | close all

Transform Matrices

变换矩阵

Preview 预览Basic 基础Inputs 投入Outputs 产出

Transform Matrices

变换矩阵

As is described for the Transform Vector Node, local coordinates or directions, for example, can be converted to global vectors when multiplied by a matrix. The same principle also works with matrices. This is, for example, useful if only the local matrices within a given object hierarchy are known. If local matrices are each multiplied by their parent matrix, a global matrix can be calculated. If multiple hierarchical levels have to be bridged, it might be necessary to multiply multiple times with all parent matrices. This is why any number of inputs for matrices can be added to this Node.

正如变换向量节点所描述的,局部坐标或方向,例如,当乘以一个矩阵时,可以转换为全局向量。同样的原理也适用于矩阵。例如,如果只知道给定对象层次结构中的局部矩阵,则这种方法非常有用。如果每个局部矩阵都与它们的父矩阵相乘,就可以计算出一个全局矩阵。如果需要跨越多个层次结构级别,则可能需要使用所有父矩阵多次乘法。这就是为什么可以将任意数量的矩阵输入添加到这个节点的原因。

Note that when multiplying with matrices, the order in which this occurs plays a role. The first, or top-most, input should therefore always be used for the matrix that should be converted.

注意,当与矩阵相乘时,这种情况发生的顺序起到了一定作用。因此,第一个或最顶端的输入应该始终用于应该转换的矩阵。