Hi,
I am trying to render some data from lidar on a Scatter3D graph and I encounter a strange problem. It looks like the data is somehow rounded...
Here is the code with the original, unchanged data:
https://codepen.io/bmaliszewski/pen/EBqaZJ
And here is the code where I subtract some constance value from X and Y:
X = X - 7541560
Y = Y - 5751100
The plot relatively should be looking the same, but its not:
https://codepen.io/bmaliszewski/pen/rEXOxw
Thanks very much for the report!
Hmm @archmoj any ideas on why this is happening? It might be related to https://github.com/plotly/plotly.js/issues/2646
Webgl 1 uses float numbers to draw numbers to the screen. And float numbers work best when the distribution of points are around the origin.
On the other hand Lidar data namely those that are encoded in LAZ format are using integer numbers which could help in lossless compression.
@boleslawmaliszewski offsetting the numbers (as a pre-processing step) as you did is a good idea until we may possibly address this issue.
This codepen illustrates scattergl handles the raw data properly.
For this regl-scatter2d uses to-float32 module.