<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks for discussion and for noticing the difference. Related references:</div>
<ul data-editing-info="{"applyListStyleFromLevel":false,"unorderedStyleType":1}" style="list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">19777-1 X3D ECMAScript language binding, clause 7 Function definitions, 7.6.6 SFRotation</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof"><a href="https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#SFRotation" id="OWA45445678-dfad-0242-9ff5-a7a589b95b73" class="OWAAutoLink">https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#SFRotation</a></div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">Table 7.18 — SFRotation instance creation functions</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<table class="elementToProof" style="margin-bottom: 18px; width: 965.521px; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td style="width: 88.5312px; height: 106.8px; border-width: medium; border-style: groove; border-color: initial; padding: 8px;">
<div>SFRotation</div>
</td>
<td style="width: 109.156px; height: 106.8px; border-width: medium; border-style: groove; border-color: initial; padding: 8px;">
<div>(numeric x,<br>
numeric y,<br>
numeric z,<br>
numeric angle)</div>
</td>
<td style="width: 765.031px; height: 106.8px; border-width: medium; border-style: groove; border-color: initial; padding: 8px;">
<div>x, y, and z are the axis of the rotation. angle is the angle of the rotation (in radians). Missing values default to 0.0, except
<span style="background-color: rgb(255, 192, 128);">y</span>, which defaults to 1.0.</div>
</td>
</tr>
</tbody>
</table>
<div class="elementToProof"><br>
</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">X3D Architecture, clause 5 Field type reference, 5.3.13 SFRotation and MFRotation</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof"><a href="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/fieldTypes.html#SFRotationAndMFRotation" id="OWAf3d77fda-be81-c82c-7d84-c07d9a02a43f" class="OWAAutoLink">https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/fieldTypes.html#SFRotationAndMFRotation</a></div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">"The default value of an uninitialized SFRotation field is (0 0 1 0). The default value of an MFRotation field is the empty list."</div>
</li></ul>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Yes they must be the same, so that X3D models are equivalent no matter what file encoding or programming-language binding are used.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
The X3D Architecture takes precedence. So we will change 19777-1 to match and the highlighted
<span style="background-color: rgb(255, 192, 128);">y</span> above will become <span style="background-color: rgb(255, 255, 0);">
z</span>.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I too think that a default of (0 1 0 0) makes more sense, animation rotations are most often around the vertical (y) axis. However, the community has discussed this many times over the years. We always landed on (0 0 1 0) for backwards-compatibility reasons,
not wanting to break legacy X3D and VRML models.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Incidentally here is the X3D tooltips entry. Improvements and refinements always welcome.</div>
<ul data-editing-info="{"applyListStyleFromLevel":false,"unorderedStyleType":1}" style="list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">X3D Tooltips: SFRotation</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">https://www.web3d.org/x3d/tooltips/X3dTooltips.html#SFRotation</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<table class="elementToProof" cellpadding="2" style="text-align: left; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td align="left" style="width: 73.7313px; height: 127.2px;">
<div><a href="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/fieldTypes.html#SFRotationAndMFRotation" target="_blank" id="OWA8020cc98-0b0c-debe-36d3-85841f6bfeb2" class="OWAAutoLink" title="X3D Architecture Specification, Field type reference">SFRotation</a></div>
</td>
<td style="width: 197.25px; height: 127.2px; text-align: left;">
<div style="text-align: left;">Single-Field rotation value using 3-tuple axis, radian angle form</div>
</td>
<td style="width: 600.006px; height: 127.2px; text-align: left;">
<div style="text-align: left;">Default value <b>0 0 1 0</b>. Model authors and authoring tools may prefer the equivalent zero-rotation default value
<b>0 1 0 0</b> since rotation about the vertical Y-axis is most common. Example values: 0 1 0 1.57<br>
<b>Warning:</b> initial 3-tuple axis vector cannot hold a zero-magnitude vector.<br>
<b>Warning:</b> comma characters within attribute values are not allowed, and do not pass strict validation.<br>
<b>Hint:</b> see <a href="https://en.wikipedia.org/wiki/Radian" target="_blank" id="OWA69e5cd3d-203f-ffe2-d5c4-055affeed550" class="OWAAutoLink">
Wikipedia: Radian</a>, <a href="https://en.wikipedia.org/wiki/Rotation_matrix" target="_blank" id="OWAe704e560-c15f-86d1-7efe-c56e2e644671" class="OWAAutoLink">
Rotation matrix</a> and <a href="https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions" target="_blank" id="OWA0f1304b9-f4cf-5c26-6141-8a0183ef6071" class="OWAAutoLink">
Rotation formalisms in three dimensions</a>.</div>
</td>
<td align="center" style="width: 265.769px; height: 127.2px;">
<div><a href="https://www.web3d.org/specifications/X3dSchemaDocumentation4.0/x3d-4.0_SFRotation.html" target="_xmlschema" id="OWA4a705336-2983-72d3-bbd7-e8845dd9c30a" class="OWAAutoLink" title="X3D XML Schema documentation">XML Schema</a>,
<a href="https://www.web3d.org/specifications/X3dRegularExpressions.html#SFRotation" target="_x3dregexes" id="OWA93c16715-e47c-1c0e-0932-32973a138c11" class="OWAAutoLink" title="X3D regexes">
X3D regexes</a>, <a href="https://www.web3d.org/specifications/JavaLanguageBinding/Part2/nodeTypeInterfaces.html#SFRotation" target="_javasai" id="OWA0a6c8022-5074-39bd-f710-465ca3745454" class="OWAAutoLink" title="SAI revisions in progress">
Java SAI</a>, <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/fields/SFRotation.html" target="_x3djsail" id="OWAbcf0f00f-ab4d-2c57-c87e-7c5ba2a61cb3" class="OWAAutoLink">
X3DJ</a></div>
</td>
</tr>
</tbody>
</table>
<div class="elementToProof"><br>
</div>
</li></ul>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
To keep track of this erratum, I have entered a new issue in the Mantis issue tracker.</div>
<ul data-editing-info="{"applyListStyleFromLevel":false,"unorderedStyleType":1}" style="list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof">Mantis 1488: (ECMAScript) 7.6.6 SFRotation default value needs to be (0 0 1 0)</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<div class="elementToProof"><a href="https://mantis.web3d.org/view.php?id=1488" id="LPlnk156162">https://mantis.web3d.org/view.php?id=1488</a></div>
</li></ul>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I hope this make sense and sounds good.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Have fun with X3D - or else!! 🙂</div>
<div class="elementToProof" id="Signature">
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;"><br>
</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;">all the best, Don</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;">--</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;">Don Brutzman Naval Postgraduate School, Code USW/Br brutzman@nps.edu</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;">Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;">X3D graphics, virtual worlds, navy robotics https://faculty.nps.edu/brutzman</span></p>
<p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"><span style="font-family: "Courier New"; font-size: 9pt;"> </span></p>
</div>
<div id="appendonsend"></div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> x3d-public <x3d-public-bounces@web3d.org> on behalf of Joe D Williams via x3d-public <x3d-public@web3d.org><br>
<b>Sent:</b> Sunday, February 16, 2025 9:09 AM<br>
<b>To:</b> Andreas Plesch <andreasplesch@gmail.com><br>
<b>Cc:</b> joedwil@earthlink.net <joedwil@earthlink.net>; X3D <x3d-public@web3d.org><br>
<b>Subject:</b> Re: [x3d-public] SFRotation default value spec. inconsistency</font>
<div> </div>
</div>
<div>
<div style="color:rgb(0,0,0); font-family:Arial; font-size:12pt">
<p style="margin:0.1rem 0; line-height:1.0">> <span style="color:#000000; font-family:'Times New Roman'; font-size:medium; white-space:normal; float:none; display:inline">
I would vote for 0 1 0 0 since rotations around Y seem more common</span> </p>
<p style="margin:0.1rem 0; line-height:1.0"> </p>
<p style="margin:0.1rem 0; line-height:1.0">First,oldest use is in Part 1, way back to origin of VRML standard.</p>
<p style="margin:0.1rem 0; line-height:1.0">Is Yaw really more popular or common than Pitch or Roll?</p>
<p style="margin:0.1rem 0; line-height:1.0">For me, Please let's stick with oldest history and update more recent. </p>
<p style="margin:0.1rem 0; line-height:1.0">Thanks</p>
<p style="margin:0.1rem 0; line-height:1.0">Joe</p>
<p style="margin:0.1rem 0; line-height:1.0"> </p>
<p style="margin:0.1rem 0; line-height:1.0"> </p>
</div>
<div class="x_elnk-inline-message-container" style="border-left:1px solid #aaa; box-sizing:border-box; padding:10px 0 10px 15px; margin:0">
<p>-----Original Message-----<br>
From: Andreas Plesch <andreasplesch@gmail.com><br>
Sent: Feb 15, 2025 9:12 PM<br>
To: <joedwil@earthlink.net><br>
Cc: Holger Seelig <holger.seelig@yahoo.de>, X3D <x3d-public@web3d.org><br>
Subject: Re: [x3d-public] SFRotation default value spec. inconsistency</p>
<p style="margin:0.1rem 0; line-height:1.0"> </p>
<div dir="ltr">
<div>I agree, probably the best default value for a unit quaternion is 0 0 0 1.</div>
<div> </div>
<div>However, X3D does not concern itself with quaternions, only axis-angle rotations.</div>
<div> </div>
<div>So the original question remains: Part 1 has axis-angle 0 0 1 0 as default while the JS SAI spec. has 0 1 0 0. Should both list the same default value ?</div>
<div> </div>
<div>If yes, which one ? I would vote for 0 1 0 0 since rotations around Y seem more common.</div>
<div> </div>
<div>-Andreas</div>
<br>
<div class="x_gmail_quote x_gmail_quote_container">
<div class="x_gmail_attr" dir="ltr">On Sat, Feb 15, 2025 at 11:04 PM <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid #cccccc; padding-left:1ex">
<div style="color:#000000; font-family:Arial; font-size:12pt">
<p style="margin:0.1rem 0px; line-height:1">Doesn't this mean that the _best_ default value, for no rotation, is 'legally' for unit quaternion = 0 0 0 1 </p>
<p style="margin:0.1rem 0px; line-height:1"><span style="font-size:12pt">because </span>
<span style="font-size:12pt">the square root of the sum of the squares of all four components does = 1 ?</span></p>
<p style="margin:0.1rem 0px; line-height:1"><span style="font-size:12pt">0 0 0 0 would not be a legal unit quaternion.</span></p>
<p style="margin:0.1rem 0px; line-height:1">While the axis-angle default is 0 0 1 0 as appears in Part 1 is mostly for convenience</p>
<p style="margin:0.1rem 0px; line-height:1">since many value combinations can produce zero rotation? </p>
<p style="margin:0.1rem 0px; line-height:1">Also sure shows why axis-angle is so much easier to work with when typing numbers,</p>
<p style="margin:0.1rem 0px; line-height:1">pitch and yaw and roll for all. </p>
<p style="margin:0.1rem 0px; line-height:1">Thanks,</p>
<p style="margin:0.1rem 0px; line-height:1">Joe</p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</div>
<div style="border-left:1px solid #aaaaaa; box-sizing:border-box; padding:10px 0px 10px 15px; margin:0px">
<p>-----Original Message-----<br>
From: Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>><br>
Sent: Feb 14, 2025 11:36 AM<br>
To: Holger Seelig <<a href="mailto:holger.seelig@yahoo.de">holger.seelig@yahoo.de</a>><br>
Cc: X3D <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>>, Joseph D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>><br>
Subject: Re: [x3d-public] SFRotation default value spec. inconsistency</p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<div dir="ltr">
<div>Let me just add for clarity that the length (or norm) of a quaternion includes the fourth, the scalar component. The norm is the square root of the sum of the squares of all four components.</div>
<div> </div>
<div>Only unit quaternions represent rotations. A (0,0,0,0) quaternion does not represent any rotation (but of course exists outside of rotations).</div>
<div> </div>
<div>Andreas</div>
<div> </div>
<div>PS: To add back in some fuzziness, a unit quaternion can only represent a rotation up to 360 degrees. I think there is a mechanism to use non-unit quaternions for larger rotations.</div>
<br>
<div class="x_gmail_quote">
<div class="x_gmail_attr" dir="ltr">On Fri, Feb 14, 2025 at 10:22 AM Holger Seelig <<a href="mailto:holger.seelig@yahoo.de">holger.seelig@yahoo.de</a>> wrote:</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid #cccccc; padding-left:1ex">
<div>All quaternions must be normalized to be a legal rotation, so the length of the quaternion must always be one.
<div> </div>
<div>Holger<br id="x_m_-7886534808598711450m_-3216428128469200639lineBreakAtBeginningOfMessage">
<div>
<div dir="auto" style="color:#000000; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:#000000; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:#000000; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:#000000; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="color:#000000; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div dir="auto" style="text-align:start; text-indent:0px">
<div style="color:#000000; letter-spacing:normal; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
--</div>
<div style="color:#000000; letter-spacing:normal; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Holger Seelig</div>
<div style="color:#000000; letter-spacing:normal; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Leipzig, Germany</div>
<div style="color:#000000; letter-spacing:normal; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</div>
<div style="color:#000000; letter-spacing:normal; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:holger.seelig@yahoo.de">holger.seelig@yahoo.de</a></div>
<div><a href="https://create3000.github.io/x_ite/" data-auth="NotApplicable" originalsrc="https://create3000.github.io/x_ite/">https://create3000.github.io/x_ite/</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
<blockquote>
<div>Am 14.02.2025 um 15:38 schrieb Joe D Williams via x3d-public <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>>:</div>
<br>
<div>
<div style="font-family:Arial; font-size:12pt">
<div style="margin:0.1rem 0px; line-height:1">> <span style="font-family:'Times New Roman'; font-size:medium; white-space:normal; float:none; display:inline">
So, sensibly, a zero rotation around any axis corresponds to the "zero unit Quaternion" (0, 0, 0, 1 XYZW), </span> </div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<div style="margin:0.1rem 0px; line-height:1">Right. Not sure but 0 0 0 0 for unit quaternion might not be legal. I think the values must compute to1 to be legal?</div>
<div style="margin:0.1rem 0px; line-height:1">Thanks,</div>
<div style="margin:0.1rem 0px; line-height:1">Joe</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</div>
<div style="border-left:1px solid #aaaaaa; box-sizing:border-box; padding:10px 0px 10px 15px; margin:0px">
<p>-----Original Message-----<br>
From: Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>><br>
Sent: Feb 10, 2025 12:37 PM<br>
To: Joe D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>><br>
Cc: Extensible 3D (X3D) Graphics public discussion <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Subject: Re: [x3d-public] SFRotation default value spec. inconsistency</p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<div dir="ltr">
<div><a href="https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_node_rotation" data-auth="NotApplicable" originalsrc="https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_node_rotation">https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_node_rotation</a></div>
<div>has indeed (0, 0, 0, 1 XYZW) as a default value.</div>
<div> </div>
<div>This is difficult to interpret as a rotation around an axis since the corresponding axis would be at first glance (0 0 0).</div>
<div> </div>
<div>x3dom converts quaternion (0, 0, 0, 1 XYZW) to (axis),angle (0,0,0),0 as does
<a href="https://www.andre-gaschler.com/rotationconverter/" data-auth="NotApplicable" originalsrc="https://www.andre-gaschler.com/rotationconverter/">
https://www.andre-gaschler.com/rotationconverter/</a> .</div>
<div> </div>
<div>On the other hand both SFRotation (0 0 1 0) and SFRotation (0 1 0 0) are also represented by quaternion (0, 0, 0, 1 XYZW).</div>
<div> </div>
<div>So, sensibly, a zero rotation around any axis corresponds to the "zero unit Quaternion" (0, 0, 0, 1 XYZW), making it a useful default value for quaternions. But that does not help with choosing a default axis for the SFRotation value.</div>
<div> </div>
<div>This will rarely matter. A use case may be when a SFRotation is initialized to the X3D default in a Proto but then only the angle is modified by a Proto script with the assumption that the axis is (0 0 1).</div>
<div> </div>
<div>-Andreas</div>
</div>
<br>
<div class="x_gmail_quote">
<div class="x_gmail_attr" dir="ltr">On Mon, Feb 10, 2025 at 12:57 PM Joe D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid #cccccc; padding-left:1ex">
<div style="font-family:arial,sans-serif; font-size:12pt">
<div style="margin:0.1rem 0px; line-height:1">not zerp, zero</div>
</div>
<div style="border-left:1px solid #aaaaaa; box-sizing:border-box; padding:10px 0px 10px 15px; margin:0px">
<p>-----Original Message-----<br>
From: Extensible 3D (X3D) Graphics public discussion <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Sent: Feb 10, 2025 9:50 AM<br>
To: Extensible 3D (X3D) Graphics public discussion <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>>, X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Cc: Joe D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>>, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>><br>
Subject: Re: [x3d-public] SFRotation default value spec. inconsistency</p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<div style="font-family:arial,sans-serif; font-size:12pt">
<div style="margin:0.1rem 0px; line-height:1">I think the 0 0 1 0 should be used everywhere for default axis-angle. </div>
<div style="margin:0.1rem 0px; line-height:1">I thinkI see 'zerp' unit quaternions (as in gltf as 0 0 0 1 XYZW) </div>
<div style="margin:0.1rem 0px; line-height:1">Thanks,</div>
<div style="margin:0.1rem 0px; line-height:1">Joe</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</div>
<div style="border-left:1px solid #aaaaaa; box-sizing:border-box; padding:10px 0px 10px 15px; margin:0px">
<p>-----Original Message-----<br>
From: Extensible 3D (X3D) Graphics public discussion <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Sent: Feb 10, 2025 8:44 AM<br>
To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Cc: Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>><br>
Subject: Re: [x3d-public] SFRotation default value spec. inconsistency</p>
<p style="margin:0.1rem 0px; line-height:1"> </p>
<div dir="ltr">
<div>The JS SAI spec. at <a href="https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#FieldServices" data-auth="NotApplicable">
https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#FieldServices</a></div>
<div> </div>
<div>does not list functions for SFColorRGBA, only SFColor. There may be an earlier report. -Andreas</div>
</div>
<br>
<div class="x_gmail_quote">
<div class="x_gmail_attr" dir="ltr">On Mon, Feb 10, 2025 at 11:31 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid #cccccc; padding-left:1ex">
<div dir="ltr">
<div><a href="https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/fieldTypes.html#SFRotationAndMFRotation" data-auth="NotApplicable">https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/fieldTypes.html#SFRotationAndMFRotation</a></div>
<div> </div>
<div>specifies that (0 0 1 0) is the value of an uninitialized SFRotation given as (x y z a).</div>
<div> </div>
<div>However, the JS SAI spec. in table 7.18 in <a href="https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#SFRotationInstanceCreationFunction" data-auth="NotApplicable">
https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#SFRotationInstanceCreationFunction</a></div>
<div> </div>
<div>effectively makes (0 1 0 0) the default value if no parameters are provided.</div>
<div> </div>
<div>The inconsistency does not have much of an impact since both are 0 rotations but I believe (0 1 0 0) - a 0 rotation around y - may have been intended as the default.</div>
<div> </div>
<div>-Andreas</div>
<div> </div>
<span class="x_gmail_signature_prefix">-- </span><br>
<div class="x_gmail_signature" dir="ltr">
<div dir="ltr">
<div>Andreas Plesch<br>
Waltham, MA 02453</div>
</div>
</div>
</div>
</blockquote>
</div>
<div> </div>
<br>
<span class="x_gmail_signature_prefix">-- </span><br>
<div class="x_gmail_signature" dir="ltr">
<div dir="ltr">
<div>Andreas Plesch<br>
Waltham, MA 02453</div>
</div>
</div>
</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</blockquote>
</div>
<div> </div>
<br>
<span class="x_gmail_signature_prefix">-- </span><br>
<div class="x_gmail_signature" dir="ltr">
<div dir="ltr">
<div>Andreas Plesch<br>
Waltham, MA 02453</div>
</div>
</div>
</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" data-auth="NotApplicable">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<div> </div>
<br>
<span class="x_gmail_signature_prefix">-- </span><br>
<div class="x_gmail_signature" dir="ltr">
<div dir="ltr">
<div>Andreas Plesch<br>
Waltham, MA 02453</div>
</div>
</div>
</div>
</div>
<p style="margin:0.1rem 0px; line-height:1"> </p>
</blockquote>
</div>
<div> </div>
<div> </div>
<span class="x_gmail_signature_prefix">-- </span><br>
<div class="x_gmail_signature" dir="ltr">
<div dir="ltr">
<div>Andreas Plesch<br>
Waltham, MA 02453</div>
</div>
</div>
</div>
</div>
<p style="margin:0.1rem 0; line-height:1.0"> </p>
</div>
</body>
</html>