<div dir="ltr">Perhaps we should try to integrate X3DOM, X3DPSAIL and brython, such that we can write X3DOM scripts with brython (plus field tags), using standard script tags, modified for brython.<div><br></div><div>I am open to this.</div><div><br></div><div>Once we have brython example, we can move to JavaScript (or whatever you want to call JavaScript with fields).</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 9:34 AM 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">X3DOM has field types, but they're under the x3dom namespace, so either need to change script code, or provide aliases for x3dom's field types.  Ah, thank's Andreas!<div><br>I would like to get the Gears example working, because it has both script and Protos.  Plus it's the canonical GL example, AFAIK.</div><div><br></div><div>I think the problem I am seeing is JavaScript knows little about what the fields are, in the example, field name="innerRadius."</div><div><br></div><div>I am not particularly having an issue with script/Script/X3DScript.  I am having problems with fields, which AFAIK, are not allowed in HTML5 script.  Using X3DScript, I am allowed to have field children.</div><div><br></div><div>John</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" target="_blank">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>
</blockquote></div>