<div dir="ltr">I guess there are no immediate opinions on the requirement that normals need to be normalized to a length of 1.0.<div><br></div><div>How should a x3d browser process a normal with a length of 1.5 ?</div><div><br></div><div>A vote ? on:</div><div><br></div><div>a) give up. Invalidate the X3D. But what about a length of 1.01 ?</div><div>b) use as is but proceed in the processing of shading as if it is of length 1.0. May lead to rendering artefacts but I think this is the expected behaviour.</div><div>c) normalize the normal to 1.0 internally. I guess that is what the requirement tries to avoid browsers have to do but browser may already do it anyways for sanity reasons.</div><div><br></div><div>I pick b).</div><div><br></div><div>Cheers, -Andreas</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 28, 2020 at 12:53 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Looking at improving the pythonocc x3d generation, we came about the<br>
requirement in X3D that normals need to be normalized to unit length:<br>
<br>
<a href="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Normals" rel="noreferrer" target="_blank">https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#Normals</a><br>
<br>
However, the spec. is silent on how precisely that requirement needs<br>
to be met. Is it required to be as precise as floats allow ? As an<br>
example, consider<br>
<br>
(0.9, 0.43588989435, 0)<br>
<br>
This vector has unit length given float precision limits.<br>
<br>
Would<br>
<br>
(0.9, 0.43589, 0)<br>
<br>
still be considered legal although it has a length of 1.00000004605 ?<br>
<br>
Does the X3D validator check for this requirement ?<br>
<br>
Thanks, Andreas<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>