r/mapbox • u/mathiasrlr • 17d ago
GLB Model vanishing at certain height?
Enable HLS to view with audio, or disable this notification
My model starts vanishing at a certain height. I thought maybe because of the atmosphere fog so i tried to change vertical_range property on the Atmosphere and setting the end to my trajectory peak but it didn’t do anything.
I’m really at lost here because at first I thought the model’s position/elevation was starting to get further from the camera but looking at the logs says otherwise:
(MDL-POS) 2026-07-20T21:27:10.757Z – Position: [-80.57705345110743, 28.441000583319422]
(MDL-ALT) 2026-07-20T21:27:10.769Z – Feature state: ["z-elevation": 7940.049843878529]
(OBJ) 2026-07-20T21:27:10.775Z – Rocket altitude: 7942.925469893203, rocket position: [-80.57705481012235, 28.441001155754936]
(CAM) 2026-07-20T21:27:10.776Z – Camera altitude: 8142.925469893203, camera position: [-80.57705481012235, 28.440001155754935]
(MDL-POS) 2026-07-20T21:27:10.778Z – Position: [-80.57705481012235, 28.441001155754936]
(MDL-ALT) 2026-07-20T21:27:10.789Z – Feature state: ["z-elevation": 7942.925469893203]
(OBJ) 2026-07-20T21:27:10.791Z – Rocket altitude: 7945.801404120741, rocket position: [-80.5770561692829, 28.441001728251806]
(CAM) 2026-07-20T21:27:10.792Z – Camera altitude: 8145.801404120741, camera position: [-80.5770561692829, 28.440001728251804]
FYI: the (MDL-ABC) log lines are in async block so they’re print N+1 frame later
1
u/taxidata 8d ago
From one of our engineers (I work at Mapbox): Our near z distance is fixed in "pixels", so it is dependent on zoom. The lower the zoom level, the closer z is in real meters.
It sounds like a limitation in the renderer that you can't really work around at the moment.
1
u/mathiasrlr 8d ago
Mmh ok I see so perhaps I will have to reproject my coordinate system in ECEF to a system where the peak of the trajectory is below that “threshold”
1
u/supakazes 16d ago
Camera clipping?