<div dir="ltr"><div dir="ltr" class="gmail_attr">What do we do to test X3D ECMAScript SAI libraries on the server?   Can someone write a few example snippets of code we can work with?   See X3D SAI code below, by Andreas as a starter.</div><div dir="ltr" class="gmail_attr"><br></div><div class="gmail_attr">I know I've discussed --headless for chrome.  That might work on the server, and it would maintain compatibility with client code.</div><div dir="ltr" class="gmail_attr"><br></div><div class="gmail_attr">Thanks,</div><div class="gmail_attr"><br></div><div class="gmail_attr">John</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Sat, Apr 11, 2020 at 8:40 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@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">Hi John,<br><br>x_ite just follows standard SAI, internal or external:<br><br>//get Browser<br>browser=X3D.getBrowser(); //X3D is global defined by x_ite.js<br>//get current scene<br>scene=browser.currentScene;<br>//make shape node<br>shape=scene.createNode('Shape');<br>//make box node<br>box=scene.createNode('Box');<br>//set geometry field<br>shape.geometry=box;<br>//add as root node (for example)<br>scene.addRootNode(shape);<br><br>For me the easiest way to experiment with scripting like this, is to<br>use the Chrome dev tools console with a simple scene like:<br><a href="https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaPanoramas/desert3X_ITE.html" rel="noreferrer" target="_blank">https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaPanoramas/desert3X_ITE.html</a><br>Following the steps will give you a white box visible in the active scene.<br></blockquote></div>