HoloLens 2 Not Retaining Anchor Placement

Philgoo 0 Reputation points
2023-01-26T16:33:34.8333333+00:00

We're using the HoloLens 2 and Azure world anchors to place the content within a room but when viewing the app content the anchors/room are spun 90% or 180% from where they should be. They are always square on and never diagonal, so it's like the room is being flipped.

We’re confident it's not the code, as we've successfully used it in multiple other locations, it just this one room we can't get it to work in.

To ensure it’s not our code we’ve tried rebuilding the app, as well as ensuring we’re on the latest versions of Unity and MRTK. The HoloLens 2 firmware are also up-to-date and we’ve also tried adding a delay to the code, just in case the network's too fast and it needs some latency to do it’s thing but none of this has helped.

Additionally, the anchors stick in a position for 5-20mins, then will move to a new position - so occasionally they seem to be working but even a broken clock is right twice a day! There’s no consistency across headsets either and the anchors will be a different position for each one. The app and code is rock solid in all other locations and we've tested placing the content on another wifi network and the same wifi network but another location and all works as it should. We've tried removing all and nearby holograms to refresh the spatial map but this doesn't cure the issue. We've also tried making the room less complex as well as more complex but again this doesn't fix things and if it does it's only temporary.

Our gut feeling is it’s something out of our control, such as wifi points throwing it out of whack, or interference of some kind such as magnetic or radio etc. If it's useful or relevant we also use Photon to facilitate a shared experience across devices.

Any suggestions much appreciated!

Azure Spatial Anchors
Azure Spatial Anchors
An Azure service that is used to build immersive three-dimensional applications and experiences that map, persist, and restore content or points of interest at real-world scale.
88 questions
Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
407 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,346 Reputation points
    2023-02-23T07:20:49.2733333+00:00

    Below is the latest update from the StackOverflow thread.

    https://stackoverflow.com/questions/75248930/hololens-2-not-retaining-anchor-placement

    Please visit the above mentioned StackOverflow Thread for further details.

    User's image

    Here are some summarized suggestions to help troubleshoot the issue:

    1. Based on the information you have provided, it seems like the issue is not with the code but with the environment. We would suggest checking the environment for any potential sources of interference and try to eliminate them. You can also try to use a different wifi network or location to see if that resolves the issue. Use a different location: If possible, try using the devices in a different location to see if the issue persists. This will help you determine if the issue is specific to the current location or if it's a more general problem with the devices or software.
    2. Contact Microsoft support: If the issue still persists, you can try to reach out to Microsoft support for further assistance. They might be able to provide you with more information and help you resolve the issue.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.