ol-mapbox-style icon indicating copy to clipboard operation
ol-mapbox-style copied to clipboard

Hillshading - Difference with Maplibre

Open utagawal opened this issue 2 years ago • 1 comments
trafficstars

While the actual hill shading rendering function is available, some small differences persists compared to Maplibre.

It is probably due to the different procedure used to generate in shading the relief allowing to better render some details.

Maplibre algorithm is here : https://github.com/maplibre/maplibre-gl-js/blob/main/src/shaders/hillshade.fragment.glsl

Here is an example of (small) differences in the images below with a small advantage to Maplibre :

Maplibre

image

OpenLayers :

Capture d’écran 2023-01-04 152106

utagawal avatar Jan 04 '23 14:01 utagawal

I'm also seeing this, there is a comparison in https://maparatus.github.io/ol-mapbox-style-spec/#paint_hillshade.hillshade-exaggeration if that helps, you can see the style here, and screenshot below

Screenshot from 2023-12-14 10-19-04

orangemug avatar Dec 14 '23 10:12 orangemug