<div dir="auto">More detail on previous approaches.</div><div dir="auto"><br></div><div dir="auto">Could something multithreaded be done?</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">John Carlson</strong> <span dir="auto"><<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>></span><br>Date: Fri, Apr 15, 2022 at 7:24 PM<br>Subject: X3D to Unity, Unreal, Blender, glTF, etc<br></div><br><br><div dir="auto">Jeff, would you be interested in helping write or design an AST in python based off of x3d.py that would output Unreal C++ code?</div><div dir="auto"><br></div><div dir="auto">See:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/x3dinput.py" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/x3dinput.py</a></div><br></div><div dir="auto">But in addition to parseJSON, we would have outputUnreal.</div><div dir="auto"><br></div><div dir="auto">Another approach is:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/x3djsonld.py" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/x3djsonld.py</a></div><br></div><div dir="auto">But generate Unreal C++ instead of python.</div><div dir="auto"><br></div><div dir="auto">At this point, I’m just looking for the right approach.   The later is really messy code, I think.   The former might be auto generated.</div><div dir="auto"><br></div><div dir="auto">Your thoughts are welcome!</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">John Carlson</strong> <span dir="auto"><<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>></span><br>Date: Fri, Apr 15, 2022 at 6:50 PM<br>Subject: Member-only:  X3D to Unity, Unreal, Blender, glTF<br>To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br></div><br><br>I’ve posted on this before.<div dir="auto"><br></div><div dir="auto">Instead of writing importers/loaders, I have a suggestion that we “compile” X3D user code to a variety of back ends, Unity, Unreal, Blender, glTF, three.js, PlayCanvas, Babylon.js etc.</div><div dir="auto"><br></div><div dir="auto">Obviously we need some kind of Abstract Syntax Tree (AST) or Intermediate Representation (IR).  I suggest we use subclasses of X3DJSAIL and/or x3d.py classes.</div><div dir="auto"><br></div><div dir="auto">I think Don would suggest using X3DJSONLD or XSLT as a basis.   Note that X3DJSONLD uses DOM or Python dict as IR.  I would prefer a typesafe IR.</div><div dir="auto"><br></div><div dir="auto">Thoughts are welcome!   What’s a good, accomplishable approach?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">John</div>
</div></div>
</div></div>