[AI] New version of softbody2; x3dvalidate news
John Carlson
yottzumm at gmail.com
Thu Mar 19 18:45:28 PDT 2026
https://coderextreme.net/softbody2/
This version has the feature of .glb download, which works well in Castle
Mobile Model Viewer. I don’t know how well it works for Humanoids with
Sunrize on Windows 11, I tried. Feel free to download the .glb. It was
generated with THREE.js GLTFExporter. Input X3D JSON was validated with
JSON schema, with additions of SoftBody and Stitch Joint.
Old versions of x3dvalidate here
https://www.npmjs.com/package/x3dvalidate
A decision was made to revert to Ajv due to stack overflow in hyperjump-io
validator. This means the schema won’t validate in Ajv strict mode.
Development of x3dvalidate is here:
https://github.com/coderextreme/x3dvalidate
I think this version doesn’t validate the X_ITE component for now. It does
validate Stitch and SoftBody.
HyperJump-io was moved to a separate file for those who want stricter JSON
schema adherence. I sent Jason Desrosiers my schema and an instance. His
comment was: “
The schema found over 1.7 million errors in the data! This package is
definitely not designed to function at these scales.” Ajv + x3dvalidate
just found a few. YMMV. Note that after the errors were corrected, both
validators approved the JSON. The JSON, both scene.json and
HumanoidComplete.x3dj, were deployed successfully.
Hint for those wanting to compress JSON. jsonlint -t 0 should work. I use
the @prantlf version, which uses Ajv.
Additional implementations welcome!
The significance of this is that Castle Model Viewer can view data sourced
as X3D JSON! Example JSON is here
https://coderextreme.net/softbody2/assets/
and here:
https://coderextreme.net/softbody2/scene.json
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/ai_web3d.org/attachments/20260319/3a86ba74/attachment.html>
More information about the AI
mailing list