[X3D-Ecosystem] Report on PythonSerializer status, upgrading X3DJSONLD to X3D 4.1; X3DJSAIL app errors

John Carlson yottzumm at gmail.com
Sat Feb 7 17:16:43 PST 2026


This is not a bug report.  This is a WIP.

I am working on improving the Python and Java Serializers and X3dTo*.xslt
stylesheets.

Here are changes to be checked in.

In src/main/data folder, replaced xsi with xsd in header:

JinLOA4.scaled1_Final.x3d
JoeDemo5JoeSkin5_Final.x3d
JoeHAnimKick1a_Final.x3d

This was due to Pyrthon XML export using xsi in the header instead of xsd.
We might need to extend our systems to handle Python XML packages output.
This doesn't affect x3d.py that I know of.

For ComposedCubeMapTexture, added Texture to end containerField values:

bumpyfreewrlsliders.x3d
flowerprotofreewrl.x3d

(I may need to upgrade my FreeWRL or FreeWRL needs to be upgraded to 4.0???

Also, I had an old HAnim Pose example that had a "poses" containerField
example.  X3DJSONLD.js was changed in this process, but I don't think the
changes were necessary.

=========================================================
I also compiled a version of X3DJSAIL, and things like
OrientationInterpolator.setDEF() and ROUTE class seem to be missing when
compiling apps (perhaps the Java 25 upgrade wasn't great?).  I see two
setDEF's in the code, so I'm not quite sure what's up.  I'm going to revert
to the published version to see if there are similar issues--no change.  I
am not reporting this on SourceForge, because these are probably a WIP.
What I can try to do is not use setDEF, and instead pass a parameter to the
OrientationInterpolator constructor.  It also may be that
OrientationInterpolator.setUSE() is affected as well.
=========================================================
I am unsure of X_ITE Material extensions in X3DJSAIL, but these errors
popped up:

javac -proc:full -J-Xss1g -J-Xmx4g bobblespheres.java
bobblespheres.java:80: error: cannot find symbol
              .setMaterial(new PhysicalMaterial().setBaseColor(new float[]
{0.9f ,0.9f ,0.9f }).setTransmissionFactor("0.9").setRoughness(0f
).setIndexOfRefraction("1.5")))

                   ^
  symbol:   method setTransmissionFactor(String)
  location: class PhysicalMaterial
bobblespheres.java:85: error: cannot find symbol
              .setMaterial(new PhysicalMaterial().setBaseColor(new float[]
{1f ,0.95f ,0.9f }).setTransmissionFactor("0.8").setRoughness(0.05f
).setIndexOfRefraction("1.1")))

                  ^
  symbol:   method setTransmissionFactor(String)
  location: class PhysicalMaterial
bobblespheres.java:166: error: cannot find symbol
              .setMaterial(new
PhysicalMaterial().setTransmissionFactor("0.95").setRoughness(0.05f )
                                                 ^
  symbol:   method setTransmissionFactor(String)
  location: class PhysicalMaterial
bobblespheres.java:167: error: cannot find symbol
                .setIORMaterialExtension(new
IORMaterialExtension().setDEF("IOR_2").setIndexOfRefraction("1.5"))))
                                             ^
  symbol:   class IORMaterialExtension
  location: class bobblespheres
bobblespheres.java:179: error: cannot find symbol
              .setMaterial(new
PhysicalMaterial().setTransmissionFactor("0.95").setRoughness(0.05f
).setIndexOfRefraction("1.33")
                                                 ^
  symbol:   method setTransmissionFactor(String)
  location: class PhysicalMaterial
bobblespheres.java:180: error: cannot find symbol
                .setIridescenceMaterialExtension(new
IridescenceMaterialExtension().setDEF("IRI_3").setIridescence("1").setIridescenceIndexOfRefraction("1.3").setIridescenceThicknessMinimum("100"))))
                                                     ^
  symbol:   class IridescenceMaterialExtension
  location: class bobblespheres
6 errors

I may post a follow up as I dig in.

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


More information about the X3D-Ecosystem mailing list