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

HARP-10772: Skip picking for invisible objects, depth prepass meshes … #1702

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

atomicsulfate
Copy link
Collaborator

…and background.

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

Thank you for contributing to harp.gl!

Before requesting a pull request, please remember to check the following documents:

If you are adding new functionality we would highly appreciate if you can describe what is the capability you are adding and even better if you can add some examples. Please also remember to add tests for it.

CI Check

Our bots will check whether your PR can be directly integrated into the mainline. We have some internal integration tests running on the background, our bots will inform you of the next steps and someone from our team will take a look and help if needed!

And please do not forget to sign-off your commit! You can read more about DCO here. But, in short, you just need to use git commit -s or append --signoff when you are committing to the repo.

Happy contributing!

…and background.

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate force-pushed the HARP-10772_SkipInvisibleObjects branch from f564f0a to cfffe62 Compare July 20, 2020 16:47
@codecov
Copy link

codecov bot commented Jul 20, 2020

Codecov Report

Merging #1702 into master will increase coverage by 0.42%.
The diff coverage is 96.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1702      +/-   ##
==========================================
+ Coverage   63.08%   63.51%   +0.42%     
==========================================
  Files         279      279              
  Lines       25246    25276      +30     
  Branches     5689     5700      +11     
==========================================
+ Hits        15926    16053     +127     
+ Misses       9320     9223      -97     
Impacted Files Coverage Δ
@here/harp-mapview/lib/DepthPrePass.ts 19.27% <85.71%> (+6.11%) ⬆️
@here/harp-mapview/lib/PickingRaycaster.ts 100.00% <100.00%> (ø)
@here/harp-mapview/lib/PickHandler.ts 75.00% <0.00%> (-0.87%) ⬇️
...e/harp-omv-datasource/lib/OmvDecodedTileEmitter.ts 60.36% <0.00%> (+0.46%) ⬆️
...here/harp-mapview/lib/text/TextElementsRenderer.ts 70.01% <0.00%> (+1.10%) ⬆️
@here/harp-materials/lib/MapMeshMaterials.ts 43.58% <0.00%> (+1.13%) ⬆️
@here/harp-mapview/lib/MapView.ts 67.21% <0.00%> (+1.31%) ⬆️
@here/harp-mapview/lib/VisibleTileSet.ts 79.00% <0.00%> (+1.88%) ⬆️
@here/harp-mapview/lib/MapObjectAdapter.ts 82.97% <0.00%> (+2.12%) ⬆️
...ere/harp-mapview/lib/composing/LowResRenderPass.ts 44.23% <0.00%> (+3.84%) ⬆️
... and 4 more

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 c299f96...10718c6. Read the comment docs.

function createFakeObject<T extends THREE.Object3D>(type: new () => T): T {
const object = new type();
sinon.stub(object, "raycast").callsFake((_, intersects) => {
intersects.push({ distance: 0, point: new THREE.Vector3(), object });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just please add a test case for the recursive code block

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
@atomicsulfate atomicsulfate merged commit bd82748 into master Jul 21, 2020
@atomicsulfate atomicsulfate deleted the HARP-10772_SkipInvisibleObjects branch July 21, 2020 14:34
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