3D file formats

glTF TRS matrix builder

Build a node’s column-major matrix from translation, quaternion and scale.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Compose T × R × S. The output array lists matrix columns, with translation in elements 12–14.

Identity rotation, scale (2,3,4) and translation (1,2,3) produce diagonal values 2,3,4,1 and the stated translation.

Limits

Quaternion length must be within 0.000001 of one. This builds local transforms; parent transforms and skinning are excluded.