microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

MRTK3 Far Ray Cursor not recognizing spatial map #10667

Closed astaikos316 closed 2 years ago

astaikos316 commented 2 years ago

This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:


Describe the bug

Building for MRTK3 on Hololens 2. When trying to interact with the spatial mapping mesh to place a hologram, the far ray cursor does not show up and the far ray does not recognize it is hitting the spatial mapping mesh.

Expected behavior

Far ray cursor should appear when far ray hits spatial mapping mesh.

Your setup (please complete the following information)

Target platform (please complete the following information)

Zee2 commented 2 years ago

Thanks for reporting this @astaikos316! Have you checked what layer your spatial mesh is on, vs the layermask on the ray interactor?

Zee2 commented 2 years ago

@astaikos316 , closing as resolved assuming the layermask change fixed your issue. If you're still running into issues, please reopen! We'll make sure the layermask is configured by default if it isn't already.

astaikos316 commented 2 years ago

I also had to add a Base Interactable Component to the Spatial Map prefab in order for it to work. Sorry for not reporting sooner.

ragavendranbala commented 2 years ago

Hi @astaikos316 thanks for your reply. I have added the Base Interactable on Spatial Mesh and it is working as expected. Now I need to know how to get the ray hit position on the spatial map to instantiate an object on the far ray hit point. Can you help me on that?

Zee2 commented 2 years ago

See other issue response @ragavendranbala !