StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
598 stars 44 forks source link

Glitch at conflicting colour/material of building and building:part #103

Closed Discostu36 closed 1 year ago

Discostu36 commented 1 year ago

Describe the bug When there is a building footprint that is not wholly covered by building:parts, but the ladder is only used to describe a part of the building that is different from the rest, the colour/material of the building and of the building:part are rendered at the same time, leading to a glitch (flickering surface).

Expected behavior The building:part should overwrite the properties of the building. In clear cases (unlike this one), it should inherit them (#98).

Map location https://streets.gl/#54.32712,10.14138,29.25,50.75,109.19

Screenshots grafik https://www.openstreetmap.org/relation/3293733 https://www.openstreetmap.org/way/376148599

System information

Additional context In this case, the building footprint is a multipolygon, I don't know if this is part of the problem.

Discostu36 commented 1 year ago

Another example: grafik https://streets.gl/#54.33057,10.12366,38.25,201.00,80.94 https://www.openstreetmap.org/way/90393644 https://www.openstreetmap.org/way/984489872

StrandedKitty commented 1 year ago

This is expected. I don't think it's possible to make a straightforward algorithm that would detect overlapping buildings, there's just too many edge cases.

To fix this particular problem you can add building:min_level=1 to the way â„–376148599.