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

More consistent hillshading across zoom levels #1584

Merged
merged 3 commits into from
Jan 11, 2025

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