Skip to content

More consistent hillshading across zoom levels#1584

Merged
pierotofy merged 3 commits intoOpenDroneMap:masterfrom
pierotofy:hillcons
Jan 11, 2025
Merged

More consistent hillshading across zoom levels#1584
pierotofy merged 3 commits intoOpenDroneMap:masterfrom
pierotofy:hillcons

Conversation

@pierotofy
Copy link
Member

I realized that the dynamic tiler applies hillshading inconsistently, e.g. at higher zoom levels the shading appears "lighter" than lower zoom levels. This can be noticed when zooming in/out. This is because the formula for delta_scale was linear, instead of quadratic, which is incorrect.

This would also lead to inconsistencies when exporting hillshaded DEMs, where the hillshading looked particularly "light" instead of looking like on-screen.

@pierotofy
Copy link
Member Author

master

@pierotofy
Copy link
Member Author

pierotofy commented Jan 11, 2025

There's also a consistency problem with color scaling, due to contrast stretching in the hillshading intensity calculation. Working on a fix for that..

@pierotofy
Copy link
Member Author

Current map view (left) vs export (right):

image

After disabling contrast stretching:

image

@pierotofy pierotofy merged commit 743f3f4 into OpenDroneMap:master Jan 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant