Incorrect rendering of model geometry after changing the position on the map (mapbox + babylon.js)

Thanks for your reply! I’m not really sure how i can reduce these numbers, because it is a real world coordinates.
I convert geo coordinates into the projected mercator coordinate with
mapboxgl.MercatorCoordinate.fromLngLat and then calculate the position of each 3D model relative to the original coordinates. The same i did using Three js and didn’t face with such issue…

Anyway, i found other solution that fixed this issue for me.
I recalculate projection matrix and position for drone on each “onMove” event on the map, just neet to optimize it with debouce function…
So when user scrolls the map to Italy, for instance, he sees the whole model, without broken geometry

2 Likes