[x3d-public] Recall--Re: X3D 4.0 specification problem: OrthoViewpoint.fieldOfView
John Carlson
yottzumm at gmail.com
Fri Jul 25 08:02:09 PDT 2025
This X3DJSAIL thing is rapidly getting beyond my skill level!
I have considered that Clojure (the actual thing I am testing) is causing
the issue, but I've seen no evidence of that. Plus, I get the same in pure
Java.
I will try setting this to false in the JavaSerializer.js Ugh!
ConfigurationProperties.setStripDefaultAttributes(true);
Makes no difference in the output fieldOfView is not present! But I don't
think I called my Serializers. I will double check. I did.
[yottzumm at JustHumans data]$ grep -i fieldOfView Connectors.*
Connectors.json: "@fieldOfView":[0,0,10,10]
Connectors.new.python.json: "@fieldOfView":"0 0 10 10", {x3d.py}
Connectors.new.python.x3d: <OrthoViewpoint centerOfRotation='-3.13496
-4.19776 0' description='OthoViewpoint' fieldOfView='0 0 10 10'
position='-3.13496 -4.19776 10'/> {ditto }
Connectors.x3d: fieldOfView='0, 0, 10, 10'/>
Connectors.x3d.new:<OrthoViewpoint description="OthoViewpoint"
position="-3.13496 -4.19776 10" centerOfRotation="-3.13496 -4.19776 0"
fieldOfView="0 0 10 10"></OrthoViewpoint> ( from the JSON, X3DJSONLD.js
output }
[yottzumm at JustHumans data]$ ls -ltr Connectors.*
-rwxrwxrwx 1 root root 14891 Jul 25 00:41 Connectors.x3d
-rwxrwxrwx 1 root root 14909 Jul 25 08:48 Connectors.new.python.x3d [ note,
I removed the x3d.py from the source folder! oops! ]
-rwxrwxrwx 1 root root 28277 Jul 25 08:48 Connectors.new.python.json [
ditto ]
-rwxrwxrwx 1 root root 40323 Jul 25 09:30 Connectors.json
-rwxrwxrwx 1 root root 12694 Jul 25 09:30 Connectors.x3d.new
-rwxrwxrwx 1 root root 14327 Jul 25 09:30 Connectors.new.clojure.x3d
-rwxrwxrwx 1 root root 14327 Jul 25 09:30
Connectors.new.clojurePrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 40313 Jul 25 09:30 Connectors.new.clojure.json
-rwxrwxrwx 1 root root 14324 Jul 25 09:30 Connectors.new.jruby.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:30
Connectors.new.jrubyPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 40301 Jul 25 09:30 Connectors.new.jruby.json
-rwxrwxrwx 1 root root 14388 Jul 25 09:31 Connectors.new.java.x3d
-rwxrwxrwx 1 root root 14388 Jul 25 09:31
Connectors.new.javaPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 40365 Jul 25 09:31 Connectors.new.java.json
-rwxrwxrwx 1 root root 14324 Jul 25 09:32 Connectors.new.graal.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:32
Connectors.new.graalPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 40301 Jul 25 09:32 Connectors.new.graal.json
-rwxrwxrwx 1 root root 14324 Jul 25 09:32 Connectors.new.graalpy.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:32
Connectors.new.graalpyPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 40301 Jul 25 09:32 Connectors.new.graalpy.json
I do worry about slight difference in X3DJSAIL .x3d intermediate output
size, and will be investigating!
-rwxrwxrwx 1 root root 14327 Jul 25 09:30
Connectors.new.clojurePrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:30
Connectors.new.jrubyPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 14388 Jul 25 09:31
Connectors.new.javaPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:32
Connectors.new.graalPrettyPrint.intermediate.x3d
-rwxrwxrwx 1 root root 14324 Jul 25 09:32
Connectors.new.graalpyPrettyPrint.intermediate.x3d
Seems to be a matter of ending in numbers in a .0 and not, or the
additional line at the bottom of a Script.
I do note that that JSON is 3 times larger than the XML. Ouch! Maybe we
can collapse some of the lines or use tabs?
I'm going to set this aside as Connectors.* is not critical at this point.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250725/a8106228/attachment.html>
More information about the x3d-public
mailing list