[x3d-public] JavaScript expert (or other) needed for HAnim conversion

John Carlson yottzumm at gmail.com
Fri Nov 20 05:07:32 PST 2020


I have a few X3D XML files that need to get converted to X3D JSON.  I
currently use X3dToJson.xslt, but I want an alternate path.  Thus I wrote:

https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/DOM2JSONSerializer.js
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/xml2all.js

Here's how I run them:

$ node ../node/xml2all.js JoeSkinTexcoordDisplacerKick.x3d

But it doesn't work on these files:

https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/data/JoeKick.x3d
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/data/JoeProcessed.x3d
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/data/JoeSkinTexcoordDisplacerKick.x3d

I don't know how to run the node debugger yet, but I'm going to start up
VSCode soon!

I don't care if you use my JavaScript or not. It should run on all
platforms (python might be nice).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201120/ed37c469/attachment.html>


More information about the x3d-public mailing list