Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

HARP-14465: Fix world coordinates precision for screen space techniques #2152

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

atomicsulfate
Copy link
Collaborator

Screen space elements use world coordinates (other elements use local tile coordinates). Their coordinates were decoded into single precision buffers, and therefore placement was not accurate for high zoom levels.

@atomicsulfate atomicsulfate force-pushed the HARP-14465_FixMarkerPlacement branch 3 times, most recently from 62bc81c to f6d47e7 Compare March 18, 2021 11:40
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
POI and text positions, which use world coordinates (in contrast to tile coordinates used
by meshes), were being decoded into a single precision buffer, hence losing precision.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@codecov
Copy link

codecov bot commented Mar 18, 2021

Codecov Report

Merging #2152 (98354e4) into master (1ca2199) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2152      +/-   ##
==========================================
- Coverage   67.70%   67.69%   -0.01%     
==========================================
  Files         298      298              
  Lines       26376    26380       +4     
  Branches     5970     5970              
==========================================
+ Hits        17858    17859       +1     
- Misses       8518     8521       +3     
Impacted Files Coverage Δ
@here/harp-datasource-protocol/lib/DecodedTile.ts 55.85% <ø> (ø)
...e/harp-mapview/lib/geometry/TileGeometryCreator.ts 71.75% <ø> (ø)
@here/harp-mapview/lib/poi/PoiManager.ts 12.85% <ø> (ø)
...vectortile-datasource/lib/VectorTileDataEmitter.ts 66.70% <50.00%> (-0.20%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ca2199...98354e4. Read the comment docs.

@atomicsulfate atomicsulfate merged commit e00c943 into master Mar 18, 2021
@atomicsulfate atomicsulfate deleted the HARP-14465_FixMarkerPlacement branch March 18, 2021 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants