<div dir="ltr">Does fixed in mean ready to test?  I've barely gotten the new schema working, broke in Java, Python, ant, etc. etc.  So far Ajv seems to be working again.  Lots of new revs of software.<div><br>There should be a cleaner Java validator out of this, I hope.<br><div><br></div><div>John</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 16, 2022 at 10:52 AM Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</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">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_2064832434030759421WordSection1">
<p class="MsoNormal">Historically in X3D3 light intensity values have been bounded [0,1] inclusive.  While performing regression testing found an unhandled example of <DirectionalLight global='true' intensity='3'/> derived from a glTF model conversion.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in">GlamVelvetSofa.x3d which was converted by view3dscene from glTF example:<u></u><u></u></li><li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in"><a href="https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/GlamVelvetSofa/glTF/GlamVelvetSofa.gltf" target="_blank">https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/GlamVelvetSofa/glTF/GlamVelvetSofa.gltf</a><u></u><u></u></li><li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in"><a href="https://X3dGraphics.com/examples/X3dForAdvancedModeling/GltfSampleModels/GlamVelvetSofa.x3d" target="_blank">https://X3dGraphics.com/examples/X3dForAdvancedModeling/GltfSampleModels/GlamVelvetSofa.x3d</a><u></u><u></u></li><li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in"><a href="https://X3dGraphics.com/examples/X3dForAdvancedModeling/GltfSampleModels/GlamVelvetSofaIndex.html" target="_blank">https://X3dGraphics.com/examples/X3dForAdvancedModeling/GltfSampleModels/GlamVelvetSofaIndex.html</a><u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As part of X3D4 Architecture, all light intensity values are now allowed to have any non-negative value.<u></u><u></u></p>
<div style="border-top:none;border-right:none;border-left:none;border-bottom:1.5pt solid windowtext;padding:0in 0in 1pt">
<p class="MsoNormal" style="border:none;padding:0in"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in">X3D 4, Lighting component, 17.3.1 X3DLightNode<u></u><u></u></li><li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#X3DLightNode" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#X3DLightNode</a><u></u><u></u></li></ul>
<p class="MsoNormal" style="margin-top:13.5pt"><b><span style="font-size:15.5pt;font-family:Verdana,sans-serif;color:black">17.3.1 <i>X3DLightNode</i><u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">X3DLightNode : X3DChildNode {
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFFloat [in,out] ambientIntensity 0     [0,1]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFColor [in,out] color            1 1 1 [0,1]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFBool  [in,out] global           FALSE<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black"> 
<span style="background:lightcyan">SFFloat [in,out] intensity        1     [0,∞)</span>
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFNode  [in,out] metadata         NULL  [X3DMetadataObject]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFBool  [in,out] on               TRUE<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFBool  [in,out] shadows          FALSE<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">  SFFloat [in,out] shadowIntensity  1     [0,1]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.75pt"><span style="font-size:8.5pt;font-family:"Courier New";color:black">}<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Also<u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in">17.2.1 Light source semantics, 17.2.1.1 Overview<u></u><u></u></li><li class="gmail-m_2064832434030759421MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#LightSourceSemantics" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#LightSourceSemantics</a><u></u><u></u></li></ul>
<p><span style="font-size:12pt;font-family:Verdana,sans-serif;color:black">Any node used as a source of illumination is derived from <i><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#X3DLightNode" target="_blank">X3DLightNode</a></i>.
 All light sources contain an <i>intensity</i>, a <i>color</i>, and an <i>ambientIntensity</i> field. The <i>intensity</i> field specifies the brightness of the direct emission from the light, and the <i>ambientIntensity</i> specifies the intensity of the ambient
 emission from the light. Light intensity may range from 0.0 (no light emission) to infinity. The <i>color</i> field specifies the spectral colour properties of both the direct and ambient light emission as an RGB value. The on field specifies whether the light
 is enabled or disabled. If the value is </span><span class="gmail-m_2064832434030759421code"><span style="font-size:10.5pt;font-family:"Courier New";color:black">FALSE</span></span><span style="font-size:12pt;font-family:Verdana,sans-serif;color:black">, the light is disabled and
 will not affect any nodes in the scene. If the value is </span><span class="gmail-m_2064832434030759421code"><span style="font-size:10.5pt;font-family:"Courier New";color:black">TRUE</span></span><span style="font-size:12pt;font-family:Verdana,sans-serif;color:black">, the light
 will affect other nodes according to the <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#ScopingOfLights" target="_blank">17.2.1.2 Scoping of lights</a>.<u></u><u></u></span></p>
<p class="MsoNormal" style="background:lightcyan;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:12pt;font-family:Verdana,sans-serif;color:black">Typically lighting <i>intensity</i> values are within range [0,1] for consistent composability of multiple scenes with independent lights.<u></u><u></u></span></p>
<div style="border-top:none;border-right:none;border-left:none;border-bottom:1.5pt solid windowtext;padding:0in 0in 1pt">
<p class="MsoNormal" style="border:none;padding:0in"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">1.  Dick, I think we need to check the above wording to avoid ambiguity since ambientIntensity and shadowIntensity remain in range [0,1]<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">2. Have relaxed upper bounds on lighting intensity in X3D4 schema and X3DUOM.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Since the restriction of [0,1] appears many times, an internal type name is used.  As indicated in Schema changelog entry which follows, am renaming it for clarity and correctness. This has no effect on specification, since it is not an
 official data type, but it does help X3D XML Schema and X3DUOM-derived codebases be exactly consistent and correct.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">- rename intensityType as unitIntervalType for correctness<u></u><u></u></p>
<p class="MsoNormal">  <a href="https://en.wikipedia.org/wiki/Unit_interval" target="_blank">https://en.wikipedia.org/wiki/Unit_interval</a><u></u><u></u></p>
<p class="MsoNormal">- (v4.0) relax upper bounds on light intervals, previously [0,1] now [0,infinity]<u></u><u></u></p>
<p class="MsoNormal">  which matches glTF Physically Based Rendering (PBR) parameters<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This change will ripple through various APIs and stylesheets in the next few days.  So far, deployed in X3D XML Schema, X3DUOM and X3DJSAIL.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Confirmation/correction comments and questions are always welcome.  Once again thanks to Michalis Kamburelis for his rigorous design alignment of X3D with glTF.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Have intense fun with X3D!  8)<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">all the best, Don<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Don Brutzman  Naval Postgraduate School, Code USW/Br        <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">X3D graphics, virtual worlds, Navy robotics https://</span>
<span style="font-size:10pt;font-family:"Courier New""><a href="http://faculty.nps.edu/brutzman" target="_blank">faculty.nps.edu/brutzman</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>