lonboard icon indicating copy to clipboard operation
lonboard copied to clipboard

Horrible z-fighting in Globe View

Open kylebarron opened this issue 1 month ago • 3 comments

https://github.com/user-attachments/assets/6dbaecd6-a226-4d09-b009-90e4d9193f29

Image
from lonboard.basemap import MaplibreBasemap
from lonboard.view import GlobeView

basemap = MaplibreBasemap(mode="interleaved")
view = GlobeView()

layer = ScatterplotLayer.from_geopandas(gdf)
m = Map(layer, basemap=basemap, view=view)
with sidecar:
    display(m)

kylebarron avatar Nov 05 '25 20:11 kylebarron

FWIW, I see this too. See

https://tim-salabim.codeberg.page/sotwm/gifs/s2.webm

for example. I thought this would be solved now with the 9.1. release (the video was recorded before that release), but I still get these rendering issues.

Do you have any ideas where the root of this lies?

tim-salabim avatar Nov 06 '25 10:11 tim-salabim

@felixpalmer was saying that a general solution here is to turn off depth testing

parameters: {depthCompare: 'never'}

https://luma.gl/docs/api-reference/core/parameters#depth-test-parameters

kylebarron avatar Nov 06 '25 15:11 kylebarron

Using depthCompare: "always" as recommended here fixes it for me.

tim-salabim avatar Nov 10 '25 06:11 tim-salabim