lonboard
lonboard copied to clipboard
Horrible z-fighting in Globe View
https://github.com/user-attachments/assets/6dbaecd6-a226-4d09-b009-90e4d9193f29
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)
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?
@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
Using depthCompare: "always" as recommended here fixes it for me.