nw::math::MTX44TextureMatrixForSoftimage Function

Syntax

NW_MATH_INLINE MTX44 * MTX44TextureMatrixForSoftimage(
     MTX44*       pOut,
     float scaleS,
     float scaleT,
     float rotate,
     float translateS,
     float translateT
);

Arguments

Name Description
out pOut Pointer to the buffer that receives the result of the calculation.
in scaleS Scale value along the s-axis.
in scaleT Scale value along the t-axis.
in rotate A rotation value.
in translateS Translation value along the s-axis.
in translateT Translation value along the t-axis.

Return Values

Returns pOut.

Description

Creates a texture coordinate conversion matrix for Softimage.

[S] [R] [T]

[S] = |scaleS 0 0 0|
| 0 scaleT 0 0|
| 0 0 1 0|
| 0 0 0 1|
[R] の回転方向は Maya および Max とは逆方向が正
[R] = | rotateCos rotateSin 0 0|
|-rotateSin rotateCos 0 0|
| 0 0 1 0|
| 0 0 0 1|
[T] = t(-translateS, -translateT)


CONFIDENTIAL