Locus Map - forum

Support => Troubles & Questions => Topic started by: john_percy on September 22, 2017, 19:13:53

Title: Spurious hill shading
Post by: john_percy on September 22, 2017, 19:13:53
Using the latest LoMap of Wales on the latest LocusPro, at zoom=12 only I get spurious hillshading tiles in the sea. There may be spurious hillshading elsewhere, but in the sea it is obvious!
I get the same effect using OAMaps at zoom=11.

(https://s26.postimg.org/w82dcagyt/Screenshot_2017-09-22-18-10-00.png) (https://postimg.org/image/w82dcagyt/)  (https://s26.postimg.org/h20wz3gbp/Screenshot_2017-09-22-18-10-16.png) (https://postimg.org/image/h20wz3gbp/)
Title: Re: Spurious hill shading
Post by: Menion on September 24, 2017, 22:11:15
Good evening John,
sharing on the ground seems to be correct right? It looks for me more like some incorrect HGT file with name of this area.
Try to look into Locus/data/srtm directory if there are a files named N53W004 and N53W005. Best should be to delete them completely.
Title: Re: Spurious hill shading
Post by: john_percy on September 24, 2017, 23:30:12
I deleted all the srtm folder and cleared temporary files (except cached online files) but the map rebuilds itself with the same problems as before.  The error only occurs at one zoom level. Looking at it carefully I think the whole hill shading tile is rotated and reflected or something similar. If you look at my screen shots you can see discontinuities at the edge of the tile on the land.
If I switch the layer to altitude colouring, it gives the correct result (so the hgt files cannot be corrupt) but the error returns when I switch back to hill shading.

Sent from my XT1039 using Tapatalk
Title: Re: Spurious hill shading
Post by: Menion on September 25, 2017, 09:18:50
Interesting, one more tip, please also delete this directory Locus\cache\map\shader and let me know if it helps. Thanks
Title: Re: Spurious hill shading
Post by: john_percy on September 25, 2017, 10:20:58
Thanks for the suggestion but it made no difference. What is so odd is that this only happens at specific zooms and on specific maps.


Sent from my XT1039 using Tapatalk

Title: Re: Spurious hill shading
Post by: Menion on September 25, 2017, 12:08:06
Hmm oki, thanks for tests.
So latest LoMap, theme internal hiking? Where did you downloaded HGT files, also over Locus Store together with map of Wales? I'm going to try to simulate it on own device ...
Title: Re: Spurious hill shading
Post by: john_percy on September 25, 2017, 13:50:34
My tests were with the latest LoMap of Wales downloaded in the last few days, and hgt files that go with that, also downloaded in the last couple of days. I have also tested with OAMaps Great Britain. The theme used does not matter, but I have illustrated the problem with the internal hike&bike theme. I get identical results if I switch themes. If I turn hillshading off, the effect goes (not surprisingly).
I have tested with the current LocusPro and the latest beta. I have these set on my phone with custom folders in common, to share the same data, as far as possible.

The screenshots below are the latest. They are not identical with what I was getting before. The artefact is only at the zoom level and map specified.

(https://s26.postimg.org/6g6m83hwl/Screenshot_2017-09-25-12-01-55.png) (https://postimg.org/image/6g6m83hwl/) | (https://s26.postimg.org/md5e4taat/Screenshot_2017-09-25-12-02-10.png) (https://postimg.org/image/md5e4taat/)
Locus Pro/LoMap Wales/z=12 | Locus Pro/OAMap Great Britain/z=11

(https://s26.postimg.org/64p5vc1gl/Screenshot_2017-09-25-11-59-54.png) (https://postimg.org/image/64p5vc1gl/) | (https://s26.postimg.org/qaxprc3fp/Screenshot_2017-09-25-12-47-42.png) (https://postimg.org/image/qaxprc3fp/)
Locus Beta/LoMap Wales/z=12 | Locus Beta/OAMap Great Britain/z=10


Title: Re: Spurious hill shading
Post by: Menion on September 25, 2017, 16:04:57
John, this one was really bad :). Problem was in incorrect naming of cached tiles, where rarely happen, that for some tile was took incorrect cached tile. I remember few times some people reported me about some incorrect shading and it was definitely this issue.
Perfect, I was able to simulate it on different place and finally fix!!
Thank you very much, should be work correctly in next (beta) version.
Title: Re: Spurious hill shading
Post by: john_percy on September 25, 2017, 16:20:25
Wonderful