arcgis for js externalRenderers + threejs

2252
0
02-09-2017 12:51 AM
zhaohui
New Contributor

Hi! Using the ArcGIS for JavaScript API 4.2。 externalRenderers exist Precision issues。 When zooming the view beyond a certain scale, geometries will appear to wobble or jitter。
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html

”However, WebGL does not support 64 bit floating point arithmetic. A simple way to work around this limitation is to render scenes with a local origin:

  • Pick a local origin position, approximately at the center of your data.
  • Subtract the local origin position from all positional data (vertex data, uniforms, etc.) before passing it into WebGL.
  • Also subtract the local origin from the translational part of the view transformation matrix.“


The above page gives the webgl solution, there are examples of threejs do?
 thank

0 Replies