Hi everyone,
I’m working on a scene where terrain data is often not very accurate, so I would like 3D Tiles to be treated as the primary visual surface.
My goal is:
- 3D Tiles should NOT be occluded by terrain, even if they are below the terrain surface
- pickPosition should prioritize 3D Tiles instead of terrain
- At the same time, other primitives (points, polylines, polygons) should still maintain correct depth testing against both terrain and 3D Tiles
I have tried using viewer.scene.globe.depthTestAgainstTerrain = false, but this causes unwanted side effects:
- Other primitives are no longer correctly occluded by terrain
So this global setting is not acceptable for my use case.
What I’m looking for is a more fine-grained control, for example:
-
Disable terrain occlusion ONLY for 3D Tiles
-
Keep normal depth testing between:
- primitives ↔ terrain
- primitives ↔ 3D Tiles
Is there a recommended approach to achieve this?
Any guidance or best practices would be greatly appreciated.
Thanks!