[x3d-public] Fwd: Wed Nov 19 - X3D-AI Working Group Meeting
John Carlson
yottzumm at gmail.com
Sun Dec 7 02:46:54 PST 2025
Sorry for double post. I was unaware of images included.
Apparently, this JavaScript code:
function readfloat(name, view) {
const f = view.getFloat32(offset, true); offset += 4;
// console.log(name, f);
return f;
}
puts out Infinity, which Castle complains about, which it should.
Apparently, the infinity is originally found in a .ply Gaussian splat file
for a color or opacity float32 field. Yes, I realize that the color
channel color values are very strange! Note that -Infinity has a different
error than Infinity.
This is in a ColorRGBA.color field:
$ fold mug_space.x3d Merrifield_fireplace.x3d |grep Infinity
589,0.298884,0.229376,-1.43606,-1.77245,-1.77245,-1.77245,-Infinity,1.18859,1.06
7,1.03418,Infinity,1.08301,0.969727,0.860352,15.9424,1.96289,1.96777,1.92773,-1.
1.38965,1.33789,1.28711,Infinity,1.50879,1.79102,1.36328,-1.03186,2.01367,2.0195
Here's current test code:
X3DJSONLD/src/main/node/convertPlyToX3d.js at master ·
coderextreme/X3DJSONLD
<https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertPlyToX3d.js>
X3DJSONLD/src/main/node/testPlyToX3d.js at master · coderextreme/X3DJSONLD
<https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/testPlyToX3d.js>
It will download appropriate .ply file and place the .x3d in the local
folder after converting.
Requires a node.js compatible JavaScript run-time.
Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20251207/57dde845/attachment.html>
More information about the x3d-public
mailing list