HY.
how i must concatenate the xml component translation of the collada visual scene file?
1)Rotate
2)scale
3)translate
or in the order that are in the file ?
i read this in the collada spec:
These transformations can be combined in any number and ordering
to produce the desired coordinate system for the parent <node> element.
The COLLADA specifi cation requires that the transformation elements are
processed in order and accumulate their result as if they were converted to
column-order matrices and concatenated using matrix post-multiplication.
then the transform must be in order of the file , but if i have a parent node how concatenate the transform?
node1–node2–node3
how i concatenate?
THans
then
Thanks.
M = (T3C x (T3B x (T3A x (T2C x (T2B x (T2A x (T1C x (T1B x (T1A x I)))))))))
I = Identity matrix
x = cross product.
M = compressed matrix
T3A = the first transform in node3
Matrix Multiplication is associative but not commutative. (AB)C = A(BC), but AB !=BA.
so order is important.
M = (T3C x T3B x T3A) x (T2C x T2B x T2A) x (T1C x T1B x T1A)