Creating Azure Spatial Anchors in Unreal Engine 4.26 and Hololens

Anonymous
2021-11-11T06:33:41.157+00:00

Hey guys. So I'm trying to create a spatial anchor using Unreal Engine and the Hololens, but I don't know how to create it, I have all of the functions implemented in by looking through the documentation for the Azure Spatial Anchors (https://zcusa.951200.xyz/en-us/windows/mixed-reality/develop/unreal/unreal-azure-spatial-anchors) and when I look into the Azure Portal, nothing happens. I was wondering if someone can help me look through my blueprints and see if everything is all right. Please let me know if there are any other things that I need to implement in order for spatial anchors to work on unreal engine 148464-2021-11-10.png

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 Object Anchors
Azure Object Anchors
An Azure mixed reality service that automatically aligns and anchors three-dimensional content to objects in the physical world.
18 questions
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.
406 questions
{count} votes

Accepted answer
  1. Jackson Fields 186 Reputation points
    2021-11-16T05:16:41.123+00:00

    Check the branch after CreateSession:
    149661-image.png

    You should connect the return value of CreateSession to the branch, otherwise ConfigSession2 will never be called:
    149558-image.png

    Take a look at our OpenXR HoloLens sample project here: https://github.com/microsoft/Microsoft-OpenXR-Unreal
    You can see how we set up Azure Spatial Anchors in the StartASA function in the MRPlayerPawn blueprint

    Some other differences/ things to check:

    1. Expand the tab in MakeAzureSpatialAnchorsSessionConfiguration and set the Account Domain from your Azure Portal.
    2. Set the Log Verbosity in ConfigSession2 to All to see if any warnings are preventing the setup from continuing. Also view your output log to see if any errors are being logged.
    3. The False branches should either log a failure or retry after some amount of time:
      149671-image.png
    4. In Edit > Project Settings > HoloLens > Capabilities, verify you have enabled: "Internet Client Server", "Private Network Client Server", "WifiControl", "Spatial Perception", "Proximity", "Location", and "Bluetooth"

0 additional answers

Sort by: Most helpful

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.