<div dir="auto">Joe, perhaps you’ve seen the WIP “LOA4” on the other thread.</div><div dir="auto"><br></div><div style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important" dir="auto">Below describes templates in sed for replacing v1 to v2 conversion.<br><div class="gmail_quote" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><div dir="ltr" class="gmail_attr">On Thu, Jan 5, 2023 at 11:34 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 5, 2023 at 8:54 PM Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72"><div><ul style="margin-top:0in" type="disc"><li style="margin-left:0in">While I tried to find an issue with the VRML grammar, and i had several misperceptions, and on review, i didn’t find any problems that just “popped out.” </li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">John, Good, that is Good, that is Very Good.</p></div></div></blockquote><div dir="auto"><br></div><div dir="auto">I hope so! My lack of knowledge surrounding. VRML is great. I have not worked a great deal with VRML, so i am using my meager XML and JSON skills, hoping at some point to start a VRML project.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72"><div><p class="MsoNormal" dir="auto"><u></u></p><p class="MsoNormal"><u></u> <u></u></p><ul style="margin-top:0in" type="disc"><li style="margin-left:0in">Your thoughts? I know everyone (besides me) is busy.<u></u><u></u></li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I just need a simple thing to change V1 names to v2 names, get some dimensions and complete the Part 1 Annex A LOA4.</p></div></div></blockquote></div></div></blockquote><div dir="auto"><br></div><div dir="auto">$ sed -e ‘s/v1—-pattern-1/v2—replacement-1/g’ \</div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">-e ‘s/v1—-pattern-2/v2—replacement-2/g’ \</span></div><div dir="auto" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important;color:rgb(255,255,255)!important"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">… </font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Basically above, on each row, replace thing between first two slashes (v1 name) with what appears between the second two slashes (v2 name), and send me script and what you want me to substitute v1 to v2 (script described above).</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">It’s also acceptable to send the rows as CSV, and I’ll return the script.</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(255,255,255)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(32,33,36)!important;color:rgb(255,255,255)!important"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">I apologize for dropping the ball so many times.</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(32,33,36)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(222,223,227)!important;color:rgb(255,255,255)!important"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">You may need to install WSL or Git Bash on windows. I can run the script though, if you need me to. So skip that.</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">If the replacement is more complicated, describe.</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Thanks!</font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></font></div><div dir="auto" style="background-color:rgba(0,0,0,0);border-color:rgb(222,223,227)"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">John</font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div><div class="gmail_quote"><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><div dir="auto">Joe,</div><div dir="auto"><br></div><div dir="auto">I’m concerned that if I accomplish such tools/scenes that they won’t get to you. I need to revamp or create a repository. I’m not sure i can duplicate the “LOA4” that was previously sent, but i can try looking through my emails. It was the one with the partially attached hands, hoping you could provide any joints or segments necessary. I will search for To:joe.</div><div dir="auto"><br></div><div dir="auto">Brb, searching through email.</div><div dir="auto"><br></div><div dir="auto">I’m not really wanting to enlist my wife, and I’m already in the doghouse for previous emails. I do not have a standard body to get dimensions from, I’m 6’8”. But perhaps that’s 2 meters, 1 meter above root? Am I “standard”? Lol</div><div dir="auto"><br></div><div dir="auto">Maybe someday, i can look at some VRML and claim, ”They took my hands!”</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72"><div><p class="MsoNormal" dir="auto"> <u></u><u></u></p><p class="MsoNormal">Joe<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal" style="border:none;padding:0in"></p></div></div></div></blockquote></div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72"><div><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Thursday, January 5, 2023 3:45 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu" target="_blank">Brutzman, Donald (Don) (CIV)</a><br><b>Cc: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a>; <a href="mailto:michalis.kambi@gmail.com" target="_blank">Michalis Kamburelis</a>; <a href="mailto:pdaehne@gmail.com" target="_blank">Patrick Dähne</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D Public Mailing List (x3d-public@web3d.org)</a><br><b>Subject: </b>VRML grammar generator. Was: Re: [x3d-public] [...] HAnim2 X3D4BoxMan update: does ClassicVRML Grammar allows ROUTE in children?</p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">While I tried to find an issue with the VRML grammar, and i had several misperceptions, and on review, i didn’t find any problems that just “popped out.” Perhaps my dry eyes have worsened.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Perhaps we should provide generation of VRML grammar from X3DUOM, if not done already? We can have thousands of checks of examples against VRML grammar, as you have said. I have not kept track of VRML “stuff.”</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Your thoughts? I know everyone (besides me) is busy.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I can even try to accomplish myself with existing grammar and X3DUOM. I can try with writing Xslt first, and if that’s too burdensome, possibly start from the JSON schema generator and branch out.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Trying to make this as easy for someone to do as possible, can we make the right implementation choice? What limitations? Declarative implementations seem important.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I agree that supporting one-offs in X3D Validator is useful and we probably don’t want to support batch web-based validation at this time.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I have also researched “schema from example” and “grammar from example.” It might be worth applying new AI research to this problem with the right prompt.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Maybe i should apply AI to the JSON schema. Hmm!</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">John </p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Thu, Jan 5, 2023 at 11:01 AM Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>> wrote:</p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in;border-left-color:rgb(204,204,204)"><div><div><p>Patrick, thanks for these important insights.</p><p> </p><p>Am looking closely and tracing the grammar. As you know, such grammars are very important because they formally and unambiguously describe what is allowed. Also pretty tricky to follow!</p><p> </p><ul type="disc"><li>Extensible 3D (X3D) encodings, Part 2: Classic VRML encoding Annex A (normative), Grammar</li><li><a href="https://www.web3d.org/documents/specifications/19776-2/V3.3/Part02/grammar.html" target="_blank">https://www.web3d.org/documents/specifications/19776-2/V3.3/Part02/grammar.html</a></li></ul><p> </p><p>Am finding following excerpts of interest. Hopefully addition of color-coding helps:</p><p style="margin-left:0.5in"> </p><ol start="1" type="a"><li><b><span style="color:rgb(84,130,53)">node </span></b>::=</li></ol><p style="margin-left:0.5in"> nodeTypeId { <b><span style="color:rgb(197,90,17)">nodeBody</span></b><span style="color:rgb(197,90,17)"> </span>} |</p><p style="margin-left:0.5in"> Script { scriptBody } |</p><p style="margin-left:0.5in"> ComposedShader {composedShaderBody} |</p><p style="margin-left:0.5in"> PackagedShader {packagedShaderBody} |</p><p style="margin-left:0.5in"> ShaderProgram {shaderProgramBody} ;</p><ol start="2" type="a"><li><b><span style="color:rgb(197,90,17)">nodeBody </span></b>::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:red">nodeBodyElement</span></b> |</p><p style="margin-left:0.5in"> <b><span style="color:red">nodeBodyElement</span></b> <b><span style="color:rgb(197,90,17)">nodeBody</span></b><span style="color:rgb(197,90,17)"> </span>|</p><p style="margin-left:0.5in"> empty ;</p><p style="margin-left:0.5in"> </p><ol start="3" type="a"><li><span style="background-color:aqua;color:black">mfnodeValue</span> ::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:rgb(255,51,204)">nodeStatement </span></b>|</p><p style="margin-left:0.5in"> [ ] |</p><p style="margin-left:0.5in"> [ <span style="background-color:fuchsia;color:black">nodeStatements</span> ] ;</p><p> </p><ol start="4" type="a"><li><span style="background-color:fuchsia;color:black">nodeStatements</span> ::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:rgb(255,51,204)">nodeStatement</span></b> |</p><p style="margin-left:0.5in"> <b><span style="color:rgb(255,51,204)">nodeStatement</span></b> <span style="background-color:fuchsia;color:black">nodeStatements</span> ;</p><p> </p><ol start="5" type="a"><li><b><span style="color:rgb(255,51,204)">nodeStatement</span></b>::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:rgb(84,130,53)">node</span></b><span style="color:rgb(84,130,53)"> </span>|</p><p style="margin-left:0.5in"> DEF nodeNameId <b><span style="color:rgb(84,130,53)">node</span></b><span style="color:rgb(84,130,53)"> </span>|</p><p style="margin-left:0.5in"> USE nodeNameId ;</p><p> </p><ol start="6" type="a"><li><b><span style="color:red">nodeBodyElement </span></b>::=</li></ol><p style="margin-left:0.5in"> initializeOnlyId fieldValue |</p><p style="margin-left:0.5in"> inputOutputId fieldValue |</p><p style="margin-left:0.5in"> initializeOnlyId IS initializeOnlyId |</p><p style="margin-left:0.5in"> inputOnlyId IS inputOnlyId |</p><p style="margin-left:0.5in"> outputOnlyId IS outputOnlyId |</p><p style="margin-left:0.5in"> inputOutputId IS inputOutputId |</p><p style="margin-left:0.5in"> <span style="background-color:yellow;color:black">routeStatement</span> |</p><p style="margin-left:0.5in"> protoStatement ;</p><p> </p><ol start="7" type="a"><li><span style="background-color:yellow;color:black">routeStatement</span> ::=</li></ol><p style="margin-left:0.5in"> <b>ROUTE</b> nodeNameId . outputOnlyId TO nodeNameId . inputOnlyId ;</p><p> </p><ol start="8" type="a"><li><i>statement</i> ::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:rgb(255,51,204)">nodeStatement</span></b> |</p><p style="margin-left:0.5in"> importStatement |</p><p style="margin-left:0.5in"> exportStatement |</p><p style="margin-left:0.5in"> protoStatement |</p><p style="margin-left:0.5in"> <span style="background-color:yellow;color:black">routeStatement</span> ;</p><p> </p><ol start="9" type="a"><li>sfnodeValue ::=</li></ol><p style="margin-left:0.5in"> <b><span style="color:rgb(255,51,204)">nodeStatement </span></b>|</p><p style="margin-left:0.5in"> NULL ;</p><p style="margin-left:0.5in"> </p><p> </p><p>So it looks like there are several chains of interest as follows:</p><p> </p><ol start="1" type="1"><li><span style="background-color:aqua;color:black">mfnodeValue</span> > <span style="background-color:fuchsia;color:black">nodeStatements</span> > <b><span style="color:rgb(255,51,204)">nodeStatement</span></b> > <b><span style="color:rgb(84,130,53)">node </span></b>> nodeTypeId {<b><span style="color:rgb(197,90,17)"> nodeBody</span></b><span style="color:rgb(197,90,17)"> </span>} > <b><span style="color:red">nodeBodyElement</span></b> > <span style="background-color:yellow;color:black">routeStatement</span> > <b>ROUTE</b></li></ol><p style="margin-left:0.5in"> </p><ol start="2" type="1"><li>sfnodeValue > <b><span style="color:rgb(255,51,204)">nodeStatement </span>> </b>(etc. as shown immediately above in chain 1)</li></ol><p style="margin-left:0.25in"> </p><ol start="3" type="1"><li><i>statement</i> > <span style="background-color:yellow;color:black">routeStatement</span> > <b>ROUTE</b></li></ol><p> </p><p>From these three chains in ClassicVRML grammar, it appears logical to conclude that <b>ROUTE</b> is allowed to appear wherever an MFNode, SFNode or statement is allowed to appear.</p><p> </p><p>That would be a consistent match with the parent-child relationships defined in X3D XML Schema and DTD.</p><p> </p><p>Hopefully I have the chain of logic correct here. All scrutiny and review is welcome, we definitely need to get this right.</p><p> </p><p>If there is any unintended omission in the Backus-Naur logic here, then great! We can agree now on corrections, and fix any issues in this year’s expected update of the ClassicVRML encoding from X3D3 to X3D4. Correction of converters can also proceed immediately upon achieving consensus.</p><p> </p><ul type="disc"><li>Wikipedia: Backus-Naur form</li><li><a href="https://en.wikipedia.org/wiki/Backus-Naur_form" target="_blank">https://en.wikipedia.org/wiki/Backus-Naur_form</a></li></ul><p> </p><p>Again thanks for careful strictness, careful checking of model content is one of our greatest strengths.</p><p> </p><p>Have fun with ClassicVRML X3D! 8)</p><p> </p><p>all the best, Don</p><p>-- </p><p>Don Brutzman Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a></p><p>Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149</p><p>X3D graphics, virtual worlds, Navy robotics https:// <a href="http://faculty.nps.edu/brutzman" target="_blank">faculty.nps.edu/brutzman</a></p><p> </p><p>-----Original Message-----<br>From: x3d-public <<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a>> On Behalf Of Patrick Dähne<br>Sent: Thursday, January 5, 2023 3:05 AM<br>To: Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>><br>Cc: X3D Public Mailing List (<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>) <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>Subject: Re: [x3d-public] [...] HAnim2 X3D4 BoxMan update</p><p> </p><p> </p><p>> Am 05.01.2023 um 03:33 schrieb Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>>:</p><p>> </p><p>> • Classic VRML does not allow to declare ROUTEs inside MFNode fields. Move them outside.</p><p>> </p><p>> There may be other x3d Statements and some rules, but I don’t see any spec language for what you describe regarding ROUTE.</p><p> </p><p>The (only) relevant part of the „Classic VRML encoding“ spec is „Annex A: Grammar“:</p><p> </p><p><a href="https://www.web3d.org/documents/specifications/19776-2/V3.3/index.html" target="_blank">https://www.web3d.org/documents/specifications/19776-2/V3.3/index.html</a></p><p> </p><p>The grammar is written in Backus-Naur form. It is the „Scheme“ of classic encoding. Have a look at the rule „mfnodeValue“. You won’t find the symbol „routeStatement“ on the right hand side of that rule.</p><p> </p><p>ROUTEs are only allowed:</p><p> </p><p>1. At the top level of the scene</p><p>2. Inside the node body (between fields)</p><p> </p><p>In my opinion it does not make much sense to forbid ROUTEs inside MFNode fields, and I am actually surprised that someone implemented it such strictly.</p><p> </p><p>Bye,</p><p> </p><p>Patrick</p><p> </p><p> </p><p>_______________________________________________</p><p>x3d-public mailing list</p><p><a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a></p><p><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p></div></div></blockquote></div></div><p class="MsoNormal" style="margin-left:4.8pt">_______________________________________________<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" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></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></div>