Open yl-msft opened 2 years ago
This approach works for me, but there is a problem that occurs if the HoloLens loses tracking and starts mapping a new space that is unrelated to the space the app started with. By "unrelated", I mean that the new space is not connected to the old one. In this case, the TryLocate method returns false. This can be easily reproduced by deleting the spatial maps using the device portal:
Please don't merge this PR into main branch.
This PR is to highlight an OpenXR unity project vs. the WinRT unity project for QR tracking. Other than adding the OpenXR plugin package to the unity package manifest and auto generated openxr settings, the key difference is in the SpatialGraphNodeTracker.cs file, where the
SpatialGraphNode
class is built in the OpenXR plugin to provide tracking of a static node represented by GUID from the platform.Note: you can checkout the OpenXR QR code sample from the "openxr" branch:
https://github.com/microsoft/MixedReality-QRCode-Sample/tree/OpenXR