Need help Testing Azure Spatial Anchors in Unreal Engine 4.26 using hololens 2

Anonymous
2021-11-19T21:04:15.95+00:00

So I just finished implementing the spatial anchoring to my MRPawn for my unreal engine project and now I want to test it but I don't know how to acutally test it. I already checked the documentation for azure spatial anchoring and there's nothing on how or where to test to see if it works. Is there a procedure or tutorial on how to test it or how to implement a button of some sort.

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.
86 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.
16 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.
380 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Fields 186 Reputation points
    2021-12-01T20:48:28.82+00:00

    Take a look at our sample OpenXR project here:
    https://github.com/microsoft/Microsoft-OpenXR-Unreal/tree/main/MsftOpenXRGame

    A right-select will spawn an ARPin at your hand's location and add it to a list of anchors to be converted to ASA anchors:
    154262-image.png

    Then a voice command will upload those anchors to the cloud:
    154207-image.png

    Finally, cloud anchors are located from an ASA watcher:
    Create the watcher:
    154263-image.png

    Subscribe to the ASAAnchor Located Delegate:
    154301-image.png
    (AzureSpatialAnchorsEvent is a component that needs to be added to the blueprint)

    And finally load a local pin from anchors the ASA watcher finds:
    154245-image.png
    Note that this function will change the ARPin model to a green material when an upload has succeeded - do not close the project until the anchors have uploaded.

    Note also that Azure Spatial Anchors will not work over remoting, you will need to run your project on a HoloLens

    1 person found this answer helpful.
    0 comments No comments