Hololens 2: QR Code Tracking in Unity not functional when Holographic Remoting

Julie Williamson 0 Reputation points
2023-04-04T12:39:34.3533333+00:00

I am using the codebase provided in the example documentation (https://github.com/microsoft/MixedReality-QRCode-Sample).
When I run this with holographic remoting, the QR codes are picked, but the position is never updated (SpatialGraphNode functions always return null). I've tracked the issue down to the lines in SpatialGraphNode

#if WINDOWS_UWP && UNITY_XR_WINDOWSMR

This never returns true, so position never gets updated. The rest is "working" in that the QR code text and other metadata is being picked up. But without location, I can't move forward. What is causing this issue? Project config uses UWP and OpenXR plugins all complete.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
386 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,081 Reputation points Microsoft Vendor
    2023-04-06T03:22:34.2433333+00:00

    Hello, Welcome to Microsoft Q&A,

    This sample has two branches, from your description, you should use the 'OpenXR' branch, please refer to GitHub - microsoft/MixedReality-QRCode-Sample at OpenXR.

    The SpatialGraphNode used in the OpenXR branch is from Microsoft.MixedReality.OpenXR instead of the SpatialGraphNode.cs in the sample. Please check that you are using the correct branch.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments