Extrusions that originate behind the horizon are clipped too early
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
It's much more pronounced when high levels of exagerration are used, but occurs even without it.
**mapbox-gl-js version**: 2.9.1
**browser**: Firefox 101.0.1
### Steps to Trigger Behavior
1. Login to [Studio](https://studio.mapbox.com)
1. Create a new style (with `globe` projection by default)
1. `3D -> 3D Terrain -> Enable terrain -> On`
1. `3D -> 3D Terrain -> Exagerration -> 1000`
1. Zoom out and spin the globe for a bit
1. Notice that mountains on the edges of the globe are flickering
### Link to Demonstration
[Shared style](https://api.mapbox.com/styles/v1/testy-user/cl4rd3chd000u15lk13a6sg0e.html?title=view&access_token=pk.eyJ1IjoidGVzdHktdXNlciIsImEiOiJjbDRyZDMyOTQwNTNzM2NvNjF3dmc1dGNmIn0.sRrT87LpCL7kd6XivEnkxg&zoomwheel=true&fresh=true#3.2/61.25/-16.01)
https://user-images.githubusercontent.com/2198527/175379360-15a695b6-49a4-4baf-b7d3-a28c2def0cb5.mp4
### Expected Behavior
Mountains on the edges of the map are visible
### Actual Behavior
Mountains on the edges of the globe disappear
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the linked shared style in Studio using globe projection, terrain, high exaggeration, and zoomed-out rotation, then trace the globe terrain rendering and clipping behavior. Done means mountains near the globe's edges remain visible without flickering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- computer-graphics, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100