<div dir="auto">I guess C function overloading has been around.  One creates a function which calls numbered functions, see something like:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://stackoverflow.com/questions/479207/how-to-achieve-function-overloading-in-c/25026358#25026358">https://stackoverflow.com/questions/479207/how-to-achieve-function-overloading-in-c/25026358#25026358</a></div><br></div><div dir="auto"><br></div><div dir="auto">I can try to do this if not done yet.</div><div dir="auto"><br></div><div dir="auto">This has been in C since C11.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 16, 2022 at 2:31 PM 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">I’ve seen some work on overloading functions in C, which may be worth looking at instead of numbering functions.  I don’t have a reference right now.</div><div><br><div class="gmail_quote"></div></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 16, 2022 at 11:20 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</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)"><div dir="auto">Don, I have not been able to get any C++ .h files compiling, due to missing afxtempl.h (previously posted).  I am dead in the water until such that file can be identified and installed on my system.</div><div dir="auto"><br></div><div dir="auto">There are also duplicate methods in C++ and C# headers reported by me and others.</div><div dir="auto"><br></div><div dir="auto">I believe progress might be made on C.   I’m on rest from surgery until Thursday/Friday.</div><div dir="auto"><br></div><div dir="auto">I assume you refer to JSON loading into X3DJSAIL using X3DJSONLD.java and JSON conversion to Python using x3djsonld.py.            I have previously posted about both of those.  I believe a patch needs to be made for MFVec2f fields in x3djsonld.py, but I don’t know why it’s broken at this point.  I  am waiting for inspiration/help.  As for Java, I have issues with the X3DJSAIL validator for JSON used in my coderextreme x3dschema repo on GitHub.   This validator is set up to validate the archive.  I believe a new X3DJSAIL has been produced since I checked that last.   I am hoping we could perhaps integrate the Ant script and Validator.java code into your build, as part of the JSON examples build?   Let me know.  I can meet after the 21st.  I'm fairly sure I am still limited to C/C++/C#/node/nashorn folders on sourceforge?</div><div dir="auto"><br></div><div dir="auto">I agree that es6x3d remains a work not in progress.  Further work on this will require someone familiar with SAI and X3D.  I’m more of an app programmer than a library programmer.  As for starting with a pre-existing stylesheet, I would prefer working with something that generates a stylesheet instead of hand-coding.   Also see previous posts about i18n, accessibility, and l10n of stylesheets, to support multiple languages.</div><div dir="auto"><br></div><div dir="auto">I am working towards getting something renderable.  I have seen that the C# SAI looks like it can render to Unity???  But haven’t seen any rendering in C/C++.</div><div dir="auto"><br></div><div dir="auto">I believe targeting rendering non-X3D players is desirable, but I’ve only seen it for Blender.  Was the Blender code autogenerated, boom presto?  I would also be interested in Andreas’ work with Babylon.js.  Is there some GPT-3/AlphaCode magic happening?</div><div dir="auto"><br></div><div dir="auto">Perhaps there is a product from the semantics working group I haven’t seen?</div><div dir="auto"><br></div><div dir="auto">John<br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Apr 15, 2022 at 10:37 PM Brutzman, Donald (Don) (CIV) <<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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div dir="auto"><p class="MsoNormal">John, we have X3DUOM which is fully complete and correct model of X3D data structures.</p><p class="MsoNormal">We are successfully generating Java and Python with ~100% correctness, fixing any stray edge cases when they emerge.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We have potential to do exactly the same with JSON and JavaScript, as you know through your impressive efforts..<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The C, C++ and C# specification drafts and example codebases have been posted for comment.  Who is testing them?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">You don’t need to change other codebases, just get our code patterns correct for each programming language, then when ready autogenerate the loader/setter classes.  Boom presto done, everywhere that wants it.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Have fun with X3D!  8)<u></u><u></u></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""><u style="font-family:"Courier New""></u> <u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">all the best, Don<u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">-- <u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Don Brutzman  Naval Postgraduate School, Code USW/Br        <a href="mailto:brutzman@nps.edu" style="font-family:"Courier New"" target="_blank">brutzman@nps.edu</a><u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149<u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">X3D graphics, virtual worlds, Navy robotics https://</span> <span style="font-size:10pt;font-family:"Courier New""><a href="http://faculty.nps.edu/brutzman" style="font-family:"Courier New"" target="_blank">faculty.nps.edu/brutzman</a><u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal"></p></div></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal"><b>From:</b> x3d-public <<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a>> <b>On Behalf Of </b>John Carlson<br><b>Sent:</b> Friday, April 15, 2022 4:50 PM<br><b>To:</b> X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br><b>Subject:</b> [x3d-public] Member-only: X3D to Unity, Unreal, Blender, glTF<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve posted on this before.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">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.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">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.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">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.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thoughts are welcome!   What’s a good, accomplishable approach?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">John<u></u><u></u></p></div></div></div></blockquote></div></div>
</blockquote></div></div>
</blockquote></div></div>