NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.47k stars 266 forks source link

Metashape generated 3d tiles #520

Closed sau0409 closed 3 months ago

sau0409 commented 3 months ago

Hi,

I am trying to load 3d tiles generated through Agisoft Metashape. Tiles are loading properly. But the model position is { "x": -4187813.326841842, "y": -828961.7326518039, "z": -4723778.720413422 }

Is there a way I can translate or transform model to 0,0,0.

image

gkjohnson commented 3 months ago

See https://github.com/NASA-AMMOS/3DTilesRendererJS/issues/395 and https://github.com/NASA-AMMOS/3DTilesRendererJS/issues/506.

The example code shows how center a tileset here but as mentioned in https://github.com/NASA-AMMOS/3DTilesRendererJS/issues/395 I'd be open to adding a function to simplify the process of centering a tileset if you'd like to make a suggestion and make a PR.