[x3d-public] Euler rotation

vmarchetti at kshell.com vmarchetti at kshell.com
Sun Jan 6 13:49:31 PST 2019


There is no single node Euler angle alternative representation of a rotation transform defined in the current (v 3.3) X3D standard.

You can get an easier to edit representation of Euler angle rotation (specifically the Tait-Bryan angles, https://en.wikipedia.org/wiki/Euler_angles#Tait%E2%80%93Bryan_angles <https://en.wikipedia.org/wiki/Euler_angles#Tait%E2%80%93Bryan_angles>, commonly used for vehicle oriented
with respect to the horizon, by nesting 3 Transforms:

<Transform DEF="yaw-rotation" rotation="0 0 1 $yaw">
<Transform DEF="pitch-rotation" rotation="0 1 0 $pitch">
<Transform DEF="roll-rotation" rotation="1 0 0 $roll">
<!-- put vehicle model here -->
<Shape>...</Shape>
</Transform>
</Transform>
</Transform>

where for $yaw, $pitch, $roll you need to substitute the numerical value of the rotation angle in radians.


Vince Marchetti

> On Jan 6, 2019, at 12:53 PM, Albert Jan Wonnink <awonnink at hotmail.com> wrote:
> 
> Is there, or should there be, an Euler alternative for the transform 'rotation' property? This makes direct x3d code editing much easier.
> 
> Regards,
> 
> 
> Albert Jan Wonnink 
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190106/c201e29e/attachment.html>


More information about the x3d-public mailing list