How can I stop the QR Code tracking on a HoloLens while maintaining the visualization its content?

93 views Asked by At

I'm working on an application that scans a stationary QR code and creates a room around the user. This works fine. What I would like to do is scan the QR code, the room gets augmented, and then I stop tracking the QR code but keep the augmented room. It is necessary that the room is tied to the QR code in space, so I cannot just place it at random. I don't want to keep tracking the QR code either. I've tried multiple ways to stop the tracking, like calling StopTracking(), or removing the room model from the QR prefab once it's instantiated and reparenting it to the root of the hierarchy, or preventing the application from removing the QR code from its list or destroying the instantiated prefab. So far all this has accomplished is stopping the tracking as soon as the QR code is read, but then also gets rid of its visualized content.

I feel like there's a simple solution, but I have not been able to find it. I would really appreciate some suggestions/advice! This is all using Microsoft's Mixed Reality QR sample for OpenXR.

0

There are 0 answers