Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-fighting in fill-extrusion buildings #12031

Open
akoylasar opened this issue Jun 22, 2022 · 1 comment
Open

z-fighting in fill-extrusion buildings #12031

akoylasar opened this issue Jun 22, 2022 · 1 comment

Comments

@akoylasar
Copy link
Contributor

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

zfight_in_fill_extrusion.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

@dagjomar
Copy link
Contributor

I experience the same behaviour when adding a thin rectangle outside of a bigger rectangle. The bigger extruded rectangle will win the z-fighting and show it's face with ambient occlusion, while the thinner extruded rectangle will be hidden, even though it is closer to the camera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants