카테고리 없음

SRT to Matrix

쮠쮠 2010. 12. 16. 18:20

Categories

  • Conversion
  • Math > Matrix

Description

Outputs a new matrix built from the input scaling, rotation and translation components.

입력된 Scale, rotation, translate 값에 의해 4X4 Matrix 생성


Port

Input

Scaling

Scale

Rotation

Rotation

Translation

Translate


Outputs

Matrix

생성된 Matrix


사용예


Null Cube 생성하고 Null Rotation 의해 Cube Rotation 결정.

Null Rotation 값을 get data node 이용해 가져오면 3D Vector 자료형이 아닌 Rotation 자료형으로 가져오게 된다.

예제에서 get data node value(out) 값을 set Data node SRT to Matrix node Rotation(input) 바로 연결해도 결과적으로 같으나 node 의미를 파악하기 위해 중간에 Rotation to Euler Euler to Rotation node 삽입하였음.

ICE set data node transform translate(XYZ), scale(XYZ), rotate(XYZ) 개별적 통제를 제한하고 있다. Set data node 이용하여 언급된 속성을 통제하면 node 빨간색으로 변하며 error상태로 변하게 된다. 따라서 transform 전제를 통제할 있는 4X4 Matrix 자료형으로 접근해야 한다.

이러한 경우 SRT to Matrix Matrix to SRT 유용하게 쓰일 것이다.