bertt / mapbox_3dtiles_samples

Samples of MapBox JS + 3D Tiles
MIT License
57 stars 11 forks source link

3dfiles cannot be loaded after setting the terrain。 Mapbox version 2.3.1 #4

Open itsegg opened 2 years ago

itsegg commented 2 years ago

Hi, Man 3dfiles cannot be loaded after setting the terrain。 Mapbox version 2.3.1

bertt commented 2 years ago

Do you get an error? Expecting when adding terrain height to all vertices the 3D Tiles will show up.

itsegg commented 2 years ago

20211027103715 3dtiles are blocked by the terrain. I added axeshelper to the scene, which was also blocked. code: const axesHelper = new THREE.AxesHelper( 50000 ); this.scene.add( axesHelper );

itsegg commented 2 years ago

image image image image I use the example in LODs to modify the mapbox version to 2.5.1, and then add terrain. 3dtiles cannot be displayed. It can be displayed after clearing the depth before each rendering. I think it's the problem of in-depth test identification. How should we deal with it? In addition, the height of 3dtiles will follow the height of the current screen center.