-
Notifications
You must be signed in to change notification settings - Fork 68
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
Hillshade layer improvements #378
base: develop
Are you sure you want to change the base?
Conversation
No really addition value requires changes to the valhalla sources
@mtehver removed the valhalla changes as they dont seem necessary for now. The rest is now fully working |
@mtehver any news on this? I would really like it to get released |
@farfromrefug Thanks for reminding, I will have time to review the changes on Friday. |
A few high-level issues that should be resolved before merging:
|
Just about the illumination. Sometimes you dont want the illumination to change with rotation. When you are out in the mountain looking at "shapes" you want to rotate the map to your orientation but still use the shadows to see slope shapes. |
@mtehver finally found the time to work on it. But i will need your help with the light orientation issue. To show it in context. Here is what is wanted |
About
Note that you need a reference point, which can be 'focus point' in internal coordinates. I think in 'normalIlluminationMapRotationEnabled' mode the light vector should be rotated along the focus point normal axis. This is something I can implement myself, if you want, once the other changes are ready. |
@mtehver yes i think i would feel better with you implementing it. I am lost there:s I pushed the requested changes |
Dont use readBitmapColor with floats as sometimes the average can give wrong rounded value and thus wrong elevation. This fixes -5000 elevations
@mtehver found an issue with my
The issue comes from the fact that |
@farfromrefug If I understand correctly, the question is about 'missing tiles'? Note that datasource can notify layer about such tiles with 'replace with parent' flag in |
@mtehver yes that s it ! Now i see how to fix that. But then |
…es, added support for xcframeworks.
…andling of following touch events.
…_decoder_and_more # Conflicts: # all/native/renderers/TileRenderer.cpp
@mtehver I updated that PR to |
I create this first as a draft because changes still need to happen.
Here what is in this PR:
illuminationDirection
illuminationMapRotationEnabled
getElevation
andgetElevations
fromHillshadeRasterTileLayer
,MapBoxElevationDataDecoder
andMapBoxElevationDataDecoder
(decoders require a datasource too in the arguments)Now here are some remarks
getElevation
andgetElevations
right now transform poses from wgs84. How to handle that correctly? Does it mean a projection argument need to be added?getElevation
andgetElevations
PS: i did manage to get elevation costing to work with Carto/Valhalla. It is really easy and could be added if you want in your packages. It even have no consequences on the package size. Let me know if you need any help in implementing that.