[X3D-Ecosystem] X3D JSON to JRuby with X3DJSONLD
John Carlson
yottzumm at gmail.com
Tue Jul 15 20:42:35 PDT 2025
I now provide full JRuby source converted from X3D JSON on the X3DJSONLD
website.
https://coderextreme.net/X3DJSONLD/src/main/html/main_viewer.html
The trick was to do fetch() in JavaScript in addition to reading files from
the file system.
Alpha testers welcome, as I am testing server-side conversion, since I
added a new function to handle the result from fs.readFileSync() and
fetch(). I have not personally tested the programs presented on the
website yet, except for JavaScript, a long time ago.
Now, I have to propagate this to other Serializers which use the file
system to read imports into source code.
A simpler alternative would be to include imports in the serializer, but
then updates would be a pain!
Amazing!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250715/e4b942c4/attachment.html>
More information about the X3D-Ecosystem
mailing list