You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to scale the model and modify its position on the map while automatically switching the perspective to the position of the model after changing the scaling ratio, which causes the model to be lost after converting manual modeling data into 3dtiles for loading
My guess is that it's because the group is positioned in (0,0,0) and the tiles are positioned on the globe, so scaling is applied relatively to the position of the group (instead of the tiles position) which messes up the tileset position.
I'll close this since I provide a workaround and 3D tiles are generally already scaled and positioned correctly so I don't think we should provide a specific API to help for scaling (or rotating) them. However, feel free to reopen it if needed. cc @Desplandis too.
How to scale the model and modify its position on the map while automatically switching the perspective to the position of the model after changing the scaling ratio, which causes the model to be lost after converting manual modeling data into 3dtiles for loading
Your Environment
Scale not set
###code
view.addLayer(layer).then((layer) => {
zoomToLayer(view, layer)
})
result
Scale set
###code
view.addLayer(layer).then((layer) => {
layer.object3d.scale.set(3, 3, 3)
layer.object3d.updateMatrixWorld()
zoomToLayer(view, layer)
})
result
The text was updated successfully, but these errors were encountered: