create3000 / sunrize

Sunrize — A Multi-Platform X3D Editor
https://create3000.github.io/sunrize/
Other
8 stars 0 forks source link

What is the local coordinate system for Transforms 1 and 2 in this model? #7

Open coderextreme opened 2 months ago

coderextreme commented 2 months ago

Am I missing something? Why are two of the boxes in the same position? localcenters.x3d.txt

create3000 commented 2 months ago

The middle shape is transformed like this P'=P*R*-C*C and the outer shape is transformed like this P'=P*-C*C. You can see now that the center (C) can be canceled out, so both shape stay on the same position and here on (0 0 0).

Every Transform node does P'=P*-C*-SO*S*SO*R*T*C. If unset, the matrices are identity matrices and can be removed.