Gaps in terrain when foreground is close to camera
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: v2.1.1 (also observed in `main`)
**browser**: Chrome 89.0.4389.90
### Steps to Trigger Behavior
1. Load 3D terrain and position close foreground hills in the center of the frame, e.g. `#16.58/36.531884/-118.455046/9.6/72`, http://localhost:9966/debug/3d-playground.html#16.58/36.531884/-118.455046/9.6/72
### Link to Demonstration
https://codepen.io/rsreusser/pen/KKadvKP

### Expected Behavior
Gaps, if present, don't exceed the skirt size.
### Actual Behavior
Gaps are sometimes quite large and obvious. Seems persistent across different aspect ratios.
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
Start with the 3D terrain playground URL in the reproduction steps and compare it with the linked CodePen, using the stated camera position and foreground hills. Investigate the terrain rendering behavior near the camera and verify the result across aspect ratios. Done means visible gaps do not exceed the skirt size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- computer-graphics, frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100