<div dir="auto">I attempted to read the standard . My understanding of the way forward is to replaced the proto body with an instance with a switch node with two choices. The first choice is the first node in the ProtoBody and the second is the rest of the proto body.</div><div dir="auto"><br></div><div dir="auto">I have no idea how events will work with the script node. TBD.</div><div dir="auto"><br></div><div dir="auto">My approach in the past has been to totally remove all traces of “Proto” since in the past X3DOM did not support it.</div><div dir="auto"><br></div><div dir="auto">I suggest a way forward is to remove my Proto Expander in X3DOM. Then pass DOM nodes to Andreas’ Proto code.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, Sep 9, 2021 at 1:48 PM 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="m_-2756497269251802811WordSection1">
<p class="MsoNormal">We will meet at regular coordinates, 1000 pacific Friday 10 SEP 2021.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Today Dick and I worked on improved definition and example for nodes following the initial node in a prototype declaration. We made excellent progress towards improved clarity. Review requested.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in">4.4.4.3 PROTO definition semantics</li><li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/concepts.html#PROTOdefinitionsemantics" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/concepts.html#PROTOdefinitionsemantics</a></li><li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in">7.3.6 X3DPrototypeInstance</li><li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/core.html#X3DPrototypeInstance" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/core.html#X3DPrototypeInstance</a></li><li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/member-only/mantis/view.php?id=1372" target="_blank">https://www.web3d.org/member-only/mantis/view.php?id=1372</a></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Example image for discussion attached… if lines 24,,26 are moved up inside the Shape, or Appearance, or Box, then the prototype declaration is no longer a valid scene subgraph and fails validation.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><img border="0" src="cid:17e431ab7a91c4b6e371" style="width: 667px; max-width: 100%;"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A more detailed example can be found in X3D for Web Authors (X3D4WA), online at<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in">X3D Example Archives: X3D4WA, X3D for Web Authors, Chapter 14 Prototypes, Material Modulator<u></u><u></u></li><li class="m_-2756497269251802811MsoListParagraph" style="margin-left:0in"><a href="https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html</a>
<u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">all the best, Don</p></div></div><div lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word"><div class="m_-2756497269251802811WordSection1"><p class="MsoNormal"><br>
<span style="font-size:10pt;font-family:"Courier New"">-- <br>
Don Brutzman Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank" style="font-family:"Courier New"">brutzman@nps.edu</a><br>
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" target="_blank" style="font-family:"Courier New"">
http://faculty.nps.edu/brutzman</a></span><u></u><u></u></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></div>