jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
549 stars 145 forks source link

3D model altitude not stable when using MapBox elevation raster-dem #403

Open MichielZevenbergen opened 1 year ago

MichielZevenbergen commented 1 year ago

When using map.setTerrain in MapBox and adding a 3D model sing threebox 2.2.2 the 3D model changes altitude when zooming in and out

2.2.2:

Displaying a dae 3D model on the map works fine, but if I add digital elevation model to the map using map.setTerrain, the altitude of the 3D model changes when zooming in and out.

I attach a zip with the html and javascript I am using.

In the javascript, if I comment the Add map elevation part it works fine.

What am I doing wrong? example3d.zip