<div dir="ltr"><a href="https://github.com/coderextreme/x3dom">https://github.com/coderextreme/x3dom</a><br><div><br></div><div>Look up both master and Script branches for changes to support Script/X3DScript node.</div><div><br></div><div>I don't see that it's hard to support Script/X3DScript if you call it a x3dom nodeType.  So I'm going to support both branches until I hit a show stopper.  I have added fields to Script.</div><div><br></div><div>I am currently testing:</div><div><br></div><div><a href="http://localhost:8000/test/functional/ScriptEventsX3dom.xhtml">http://localhost:8000/test/functional/ScriptEventsX3dom.xhtml</a><br></div><div><a href="http://localhost:8000/test/functional/MaterialModulatorX3dom.xhtml">http://localhost:8000/test/functional/MaterialModulatorX3dom.xhtml</a><br></div><div><br></div><div>Major problems appear to be lack of input from sensors.  Suggestions?  Fix routes in X3DOM????</div><div><br></div><div>Gears demo has been put off until SFRotation implemented or converted.</div><div><br></div><div>Please join me in testing/debugging.  You'll need to start a web server at x3dom level (contains test folder).</div><div><br></div><div>So all this ballyhoo about HTML versus XML scripts seemed just to need to declare Script as a x3dom node.  Someone could make sure I did it the right way.</div><div><br></div><div>John</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 1:44 AM Don Brutzman <<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">John please don't worry about SAI completeness.  You didn't hear me mention that.<br>
<br>
Most Scripts take simple input events, compute a change, and send the result back out to the scene graph. Rudimentary functionality with strict typing.<br>
<br>
X_ITE indeed supports Script nodes and prototypes, and has done so capably for a long time.  Many examples:<br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForWebAuthors/" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/</a><br>
   <a href="https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/</a><br>
   <a href="https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/ScriptEventsIndex.html" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/ScriptEventsIndex.html</a><br>
<br>
* <a href="https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/</a><br>
   <a href="https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html" rel="noreferrer" target="_blank">https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorIndex.html</a><br>
<br>
Focusing on one test case at a time is a good way to isolate potential problems and resolve them - again, one test case at a time.<br>
<br>
Good luck out there!<br>
<br>
<br>
On 10/14/2020 7:44 PM, John Carlson wrote:<br>
<br>
> <br>
> X3DJSONLD only has limited functionality for X3DScript.   I stripped it because X_ITE did not have support, so none of my X3DScripts were working.   I hope we can get X3DScript added to XMLSchema, X3DUOM etc<br>
> <br>
> Thanks, Don<br>
> <br>
>   John<br>
> <br>
> On Wed, Oct 14, 2020 at 9:33 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
>     If I recall correctly, full support for SAI will require a Browser implementation.   I suggest someone scope out the work for that, if any.   That is, much of the functionality may be there.  It’s important to distinguish X_ITE’s Browser from X3DOM’s in any case.<br>
> <br>
>     John<br>
> <br>
>     On Wed, Oct 14, 2020 at 9:22 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>> wrote:<br>
> <br>
>         Andreas, can you share any info about why field routing may not be working for X3DScripts in X3DOM?  See coderextreme repository.<br>
> <br>
>         When I get a chance, I will peek at proto declare/interface fields, but my understanding is those go away!<br>
> <br>
>         Note that I’m not currently working on SAI for X3DOM, but I do have some preliminary steps for declaring field types.<br>
> <br>
>         John<br>
> <br>
>         On Wed, Oct 14, 2020 at 6:45 PM Don Brutzman <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>> wrote:<br>
> <br>
>             On 10/13/2020 8:26 PM, John Carlson wrote:<br>
>              ><br>
>              > Here’s may be possible:  X3DScript node for X3DOM and  X_ITE.   PROTOs with scripts<br>
> <br>
>             Script node support is is always topmost deficient.  X3DOM without scripts is not compliant X3D or VRML.<br>
> <br>
>             Prototypes are tied for importance, as in Really Really Important for X extensibility.<br>
> <br>
>             Please continue sharing information with Andreas so that this might all land and work.  Thanks John.<br>
> <br>
>             all the best, Don<br>
>             -- <br>
>             Don Brutzman  Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a> <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">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" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
> <br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">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" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzman</a><br>
</blockquote></div>