<div dir="auto">It would seem very easy to create an X3D -> classic VRML conversion on input with chisel using conversion tools in X3DJSAIL.   Perhaps more difficult would be to add a VRML parser, but chisel or Xj3d should have one.</div><div dir="auto"><br></div><div dir="auto">I would advocate for converting XML to JSON in the web browser before this.</div><div dir="auto"><br></div><div dir="auto">We could probably add VRML to XML fairly easily, if we have the VRML object model in chisel—just add toX3D() or some such.  Perhaps we could adopt a <fill in the blank> to X3D approach.   I do not know where to start—there seem to be many choices.</div><div dir="auto"><br></div><div dir="auto">What I would advocate is developing a library of importers an exporters that we could pass to a scenegraph.   I believe this is the best design.</div><div dir="auto"><br></div><div dir="auto">So instead of set/get everywhere in the API, one would have importers that one would pass to the X3D constructor and a method you could pass exporters to in the X3D class in X3DJSAIL.   so there would be a method toFile(Exporter). for example.</div><div dir="auto"><br></div><div dir="auto">Thus a simple translation from VRML to X3D might entail:</div><div dir="auto"><br></div><div dir="auto">VRMLImporter vi = new VRMLImporter(file or string);</div><div dir="auto"><br></div><div dir="auto">X3D x = new X3D(vi);</div><div dir="auto"><br></div><div dir="auto"> X3DExporter xe = new X3DExporter(file or string builder);</div><div dir="auto"><br></div><div dir="auto">x.export(xe);</div><div dir="auto"><br></div><div dir="auto">Let me know what volunteer positions are available for chisel.  I normally focus on creating test cases and testing and automated testing.</div><div dir="auto"><br></div><div dir="auto">John <br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Jan 24, 2021 at 12:37 PM 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Blast from the past: Chisel tool still works on VRML and ClassicVRML.  Can we upgrade it?<br>
<br>
[1]     X3D Resources, Conversions and Translation Tools: Chisel<br>
        <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html#Chisel" rel="noreferrer" target="_blank">https://www.web3d.org/x3d/content/examples/X3dResources.html#Chisel</a><br>
<br>
"15. Chisel VRML Optimisation Tool with autoinstaller and documentation provided by Halden Virtual Reality Centre. Originally built by Trapezium and maintained by NIST."<br>
<br>
Thanks to Michael Louka's careful stewardship over many years, am happy to report that this Java codebase - dating to the earliest days of VRML97 and the Web3D Consortium - is *again available and still runs*.  Way cool.<br>
<br>
[2]     Sourceforge, Web3D Consortium open source, X3D tools, Chisel<br>
        <a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/chisel" rel="noreferrer" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/chisel</a><br>
        <a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/chisel/test/HelloWorldScreenshotChisel.png" rel="noreferrer" target="_blank">https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/chisel/test/HelloWorldScreenshotChisel.png</a><br>
<br>
Subversion checkout:<br>
<br>
[3]     <a href="https://svn.code.sf.net/p/x3d/code/www.web3d.org/x3d/tools/chisel" rel="noreferrer" target="_blank">https://svn.code.sf.net/p/x3d/code/www.web3d.org/x3d/tools/chisel</a><br>
<br>
 From recent evaluation email by me:<br>
<br>
> Good news: Michael has maintained this Java codebase locally, still runs it occasionally, and is willing to give it back for maintenance openly under Web3D Consortium's public infrastructure.  Am guessing this might take a few months to become more sharable and actionable, we'll see.  All of the planning and work will be reported on the x3d-public mailing list, hopefully attracting a contributor or two.<br>
> <br>
> I tried running this (fairly ancient) installer on my Windows machine - installing for invocation with a modern java failed (earlier jar files no longer have same structure) but installing Chisel "as is" with bundled Java 1.6 worked.  8)<br>
> <br>
> If you can get Chisel running on one of your systems, it is likely worth trying on one of the VRML your models in order to get a sense of what might be possible.  Model reduction workflow is (X3D -> VRML -> chiseled VRML -> X3D) in order to retain all original model metadata.  Chisel data-reduction algorithms work on model geometry (vertices and indices), colors and animations.<br>
> <br>
> I just ran Chisel to good effect on my second machine, reducing a legacy (Shay D Pixel) 1.5MB VRML model to 450K.  Not bad "out of the box" result.  Will attach result in next message.<br>
<br>
[4]     X3D Example Archives: X3D4AM, X3D for Advanced Modeling, Shay D Pixel, Shay D Pixel Version 2<br>
        <a href="http://x3dgraphics.com/examples/X3dForAdvancedModeling/ShayDPixel/ShayDPixelVersion2Index.html" rel="noreferrer" target="_blank">http://x3dgraphics.com/examples/X3dForAdvancedModeling/ShayDPixel/ShayDPixelVersion2Index.html</a><br>
        <a href="http://x3dgraphics.com/examples/X3dForAdvancedModeling/ShayDPixel/ShayDPixelVersion2.wrl" rel="noreferrer" target="_blank">http://x3dgraphics.com/examples/X3dForAdvancedModeling/ShayDPixel/ShayDPixelVersion2.wrl</a><br>
<br>
> The 3D model size-reduction arena will remain a common challenge (as it has for over 20 years) and so continues to be worth pursuing.  I don't expect any quick fixes, but am optimistic that we will get Chisel restored.  No doubt can upgrade Chisel to .x3d XML encoding as well as .wrl VRML97 and .x3dv ClassicVRML encodings.  Will probably be able to make it part of X3DJSAIL tool chain as well.  Given our emphasis on backwards compatibility while evolving VRML97 through many versions of X3D, each of the many Chisel techniques are expected to still be viable. <br>
<br>
So this is an exciting development!  Who is interested in helping? Hoping we can plan a meeting to plan partnered work on renewed work.<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>
<br>
_______________________________________________<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>