I have the following 2 transformations applied to a cylinder in X3d:
<Transform rotation="0 0 1 -0.785">
<Transform translation="0 2 0">
<Shape><Cylinder height="4" radius="0.1" />
<Appearance><Material diffuseColor="1 0 0" /></Appearance>
</Shape>
</Transform>
</Transform>
According to the X3d specifications the order in which nested transformations are applied to an object is, first the most nested transformation, in my example, the translation and secondly the outer transformation,ie in my example, the rotation.
Therefore, I do not understand that this is the result of the X3d code above:
As I understand, it should be this:
because first a translation is applied to the cylinder moving its mid-point from (0,0,0) to (0,2,0),and then a rotation is applied. The center of rotation should be (0, 2,0), not (0,0,0) as the result of the first image would suggest.
Thank you for any explanation to why I understand it backwards.