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

MAPSJS-2660: Disable depth test for IconMaterial. #2268

Merged
merged 3 commits into from
Aug 6, 2021

Conversation

atomicsulfate
Copy link
Collaborator

@atomicsulfate atomicsulfate commented Aug 5, 2021

Depth buffer is not cleared after rendering 3D scene. As a result,
icons were not passing the depth test in some situations, like in
globe with top/down view.
Depth test is not needed, labels are always on top of other objects
and they don't write on the depth buffer.

Signed-off-by: Andres Mandado andres.mandado-almajano@here.com

Depth buffer is not cleared after rendering 3D scene. As a results
icons were not passing the depth test in some situations, like in
globe with top/down view.
Depth test is not needed, labels are always on top of other objects
and they don't write on the depth buffer.

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

codecov bot commented Aug 5, 2021

Codecov Report

Merging #2268 (3e67849) into master (7a6da80) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2268      +/-   ##
==========================================
- Coverage   67.87%   67.87%   -0.01%     
==========================================
  Files         313      313              
  Lines       27665    27665              
  Branches     6191     6191              
==========================================
- Hits        18779    18778       -1     
- Misses       8886     8887       +1     
Impacted Files Coverage Δ
@here/harp-materials/lib/IconMaterial.ts 91.66% <ø> (ø)
@here/harp-mapview/lib/MapMaterialAdapter.ts 92.14% <0.00%> (-0.72%) ⬇️

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 7a6da80...3e67849. Read the comment docs.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate force-pushed the MAPSJS-2660_FixIconRegression branch 2 times, most recently from 6755ec7 to cc6277e Compare August 6, 2021 09:35
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate merged commit 9e25396 into master Aug 6, 2021
@atomicsulfate atomicsulfate deleted the MAPSJS-2660_FixIconRegression branch August 6, 2021 12:02
LukeParky pushed a commit to LukeParky/harp.gl that referenced this pull request Aug 8, 2021
* MAPSJS-2660: Disable depth test for IconMaterial.

Depth buffer is not cleared after rendering 3D scene. As a results
icons were not passing the depth test in some situations, like in
globe with top/down view.
Depth test is not needed, labels are always on top of other objects
and they don't write on the depth buffer.

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

* MAPSJS-2660: Move marker IBCT tests to ScreenSpaceRenderingTests.

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

* MAPSJS-2660: Add IBCT test for marker on zoomed out globe.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
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.

2 participants