VRayMatrix

February 15, 2023 ยท View on GitHub

from tdw.vray_data.vray_matrix import VRayMatrix

Matrix data for a VRay object or camera.


Class Variables

VariableTypeDescriptionValue
HANDEDNESSnp.ndarrayConversion matrix from Y-up to Z-up, and left-hand to right-hand.np.array([[-1, 0, 0, 0],

Functions

__init__

__init__

VRayMatrix()

get_converted_node_matrix

self.get_converted_node_matrix(matrix)

ParameterTypeDefaultDescription
matrixnp.ndarrayThe object transform matrix.

Returns: The converted matrix as a VRayMatrix.

get_converted_camera_matrix

self.get_converted_camera_matrix(avatar_matrix, sensor_matrix)

ParameterTypeDefaultDescription
avatar_matrixnp.ndarrayThe avatar transform matrix.
sensor_matrixnp.ndarrayThe sensor container matrix.

Returns: The converted matrices as a VRayMatrix.