NW_MATH_INLINE MTX44 * MTX44TextureMatrixForSoftimage(
MTX44* pOut,
float scaleS,
float scaleT,
float rotate,
float translateS,
float translateT
);
| 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. |
Creates a texture coordinate conversion matrix for Softimage.
A conversion matrix of the type given below is created.
[S] [R] [T]
[S] = |scaleS 0 0 0|
| 0 scaleT 0 0|
| 0 0 1 0|
| 0 0 0 1|
The positive direction of rotation of [R] is the opposite of that when using Maya or Max3ds.
[R] = | rotateCos rotateSin 0 0|
|-rotateSin rotateCos 0 0|
| 0 0 1 0|
| 0 0 0 1|
[T] = t(-translateS, -translateT)
CONFIDENTIAL