<div dir="ltr"><br>Sorry for double post. I was unaware of images included.<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr">Apparently, this JavaScript code:<div><br><div>function readfloat(name, view) {<br> const f = view.getFloat32(offset, true); offset += 4;<br> // console.log(name, f);<br> return f;<br>}</div><div><br></div><div>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.</div><div> </div><div>This is in a ColorRGBA.color field:</div><div><br></div><div>$ fold mug_space.x3d Merrifield_fireplace.x3d |grep Infinity<br>589,0.298884,0.229376,-1.43606,-1.77245,-1.77245,-1.77245,-Infinity,1.18859,1.06<br>7,1.03418,Infinity,1.08301,0.969727,0.860352,15.9424,1.96289,1.96777,1.92773,-1.<br>1.38965,1.33789,1.28711,Infinity,1.50879,1.79102,1.36328,-1.03186,2.01367,2.0195</div></div><div><br></div><div>Here's current test code:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/convertPlyToX3d.js" target="_blank">X3DJSONLD/src/main/node/convertPlyToX3d.js at master · coderextreme/X3DJSONLD</a></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/testPlyToX3d.js" target="_blank">X3DJSONLD/src/main/node/testPlyToX3d.js at master · coderextreme/X3DJSONLD</a></div><div><br></div><div>It will download appropriate .ply file and place the .x3d in the local folder after converting.</div><div><br></div><div>Requires a node.js compatible JavaScript run-time.</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div>
</div></div>