[X3D-Ecosystem] loading XML into live python X3D scenegraph

John Carlson yottzumm at gmail.com
Wed Jun 25 02:42:52 PDT 2025


I realize there’s ways to convert X3D XML to x3d.py Python (offline), but
I’m wondering if there’s an existing way to load X3D XML into a live python
X3D scenegraph.  I realize that H3DAPI may do that, but I don’t know if
it’s compatible with x3d.py.   I want a python scenegraph, not a C++ one.
I realize C++ might be preferred by other people.

If there’s an adjunct python program to x3d.py, great.  I realize such a
thing might be easy to generate.  I tried with X3D JSON.

Please provide python imports and python method or function names, even if
they are SAI.

I believe this will become useful for loading X3D encodings into Blender
and Maya.

The idea  would be to provide a complete loader, and the scenegraph can be
transferred to Maya or Blender objects, perhaps lossily.

What I might attempt is using X3DLoaderDOM.java to load XML, with GraalPy.
There’s no current XML loader in GraalPy for Windows, last I tried, so I
will use Java,  then I’ll map over the Java scenegraph to x3d.py scenegraph.

https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/X3DLoaderDOM.html

What I will be doing also to provide X3D JSON validation in GraalPy.
Generic Python JSON validation is pretty slow!   I’ll be working with this
code:
https://github.com/coderextreme/x3dschema/blob/main/Validate.java which
provides JSON validation with XML schema and X3DJSAIL.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250625/c10bd826/attachment.html>


More information about the X3D-Ecosystem mailing list