Menu

#63 Fix DEF/USE ordering in x3d.py (X3DPSAIL) XML and VRML output

X3D4
open
None
2025-08-26
2025-08-26
No

Fix DEF/USE ordering in x3d.py XML and VRML output. DEF/USE output ordering should follow the order of the Python code (or original XML), but it follows a sorted order of outputted fields hard-coded in x3d.py itself. I have too many examples to mention, but HAnim is a particular hot point. Since, AFAIK, there is no output from x3d.py in the archive, I can't point to you anything in the archive.

I will try to generate some examples with X3dToPython.xslt next, just to see if my PythonSerializer is causing the problem. I may have to modify the stylesheet to provide output files. Can we see Python updates to X3DJSAIL faster than x3d.py updates?

This might be a good place to start. https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScriptsIndex.html Change the Python that page such that it generates XML, then view the output in castle-model-viewer and Sunrize or X_ITE.

Thanks,

John

1 Attachments

Discussion

  • John W Carlson

    John W Carlson - 2025-08-26

    I am attaching something generated by X3dToPython.xslt that shows the problem. Note that the stylesheet had problems in the XML file output code. I will attach those changes too.

     
  • John W Carlson

    John W Carlson - 2025-08-26
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1 @@
    +CleanedYouClocks.py (542.1 kB; text/x-python)
    
     
  • John W Carlson

    John W Carlson - 2025-08-26

    Python code

     
  • John W Carlson

    John W Carlson - 2025-08-26

    Output .x3d

     
  • John W Carlson

    John W Carlson - 2025-08-26

    Stylesheet

     

Log in to post a comment.

MongoDB Logo MongoDB