[x3d-public] Interesting max/round off issue

John Carlson yottzumm at gmail.com
Sun Mar 1 00:39:19 PST 2026


Any comments on overeager rounding, which causes validation failures?   Maximum
angle is 1.5708, which rounds off to 1.571, which is too big.  Problem is
with Background.groundAngle.  An argument for always validating?

I didn’t notice an issue visually until trying to interpret schema
validation issues.

Any JavaScript filters for fixing overflows is welcome!

As Joe says, sometimes you just want to go into user code and fix it.

What if this had happened with .glb?

John


Error below:
keyword: maximum
schema location: $defs > Background > oneOf > 1 > properties > @groundAngle
> items > maximum
schema value: 1.5708
instance location: X3D > Scene > -children > 0 > Background > @groundAngle
> 1
instance value: 1.571
instance shorthand value: 1.571
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20260301/8750e113/attachment.html>


More information about the x3d-public mailing list