peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
528 stars 320 forks source link

When I zoom in on the map, the graphics shake #89

Open qjh999 opened 4 years ago

qjh999 commented 4 years ago

When previewing the line example, when the map zooms to a certain level, the line will shake. How can I solve this problem?

jscastro76 commented 4 years ago

Hi @WebScholar,
That's because of an issue with the camera depth. I have created a fork from this repo that improves the camera depth among many other new features. image

qjh999 commented 4 years ago

@jscastro76 First of all, thank you for your fork. I downloaded and ran your project,the line sample still has shake. I look forward to your reply. image

jscastro76 commented 4 years ago

Hi @WebScholar, Let me check that example out, as it comes from the original repo. But I can tell you I have real size 3D objects separated by centimeters designing a data center, and their positions are fully stable with no shake at all in any pitch/bearing/zoom combination (indeed I have my mapbox fork tuned with maxZoom = 26, which is 4 zoom units deeper than the original mapbox.