mapbox / mapbox/mapbox-gl-js

z-fighting in fill-extrusion buildings

Open
#12,031 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3d :triangular_ruler: bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Some of the buildings in the `fill-extrusion` layer manifest a z-fighting artifact as seen in the video below:

https://user-images.githubusercontent.com/67509069/175061020-e9c867c8-2b59-4d6f-aa14-1750b45f7689.mp4

### Steps to Trigger Behavior
1. Add a fill extrusion layer with `fill-extrusion-ambient-occlusion-intensity = 0.5` and `fill-extrusion-ambient-occlusion-radius = 3`.
2. Navigate to `17.49/60.171903/24.943105/-88.1/75`

Observe the artifact manifesting itself on one of the buildings as panning/zooming around.

cc @mapbox/gl-native @astojilj

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the artifact with a fill-extrusion layer using ambient occlusion intensity 0.5 and radius 3, then navigate to 17.49/60.171903/24.943105/-88.1/75 while panning and zooming. The work is done when the building no longer shows z-fighting under those settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.