Bind Cloud Spatial Anchors with a 3D model

Karol R 1 Reputation point
2022-01-20T10:48:58.223+00:00

Hi!
I'm developing an app in Unity where I want to draw a path between two anchors, but I want this path to take a walkable area under consideration (I don't want it to be a straight line or a simple arrow). To achieve that I'm considering binding cloud anchor data with a CAD model of a building.

My question is: how can I get access to all the anchors and align them with the building model?

A solution I'm seeing right now is to find and load near anchors (as a user), then place a model's object with position and rotation matching the anchors, and after that find a path between requested points. Does it make sense, or maybe there is a better solution?

Is there some tutorial explaining navigation with cloud spatial anchors?

Bests!

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.
87 questions
{count} votes

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,666 Reputation points Microsoft Employee
    2022-01-25T10:44:20.37+00:00

    Hello @Karol R ,

    Sharing the feedback I have received from the Product Team:

    "
    This seems like a candidate for Space Pins World Locking Tools (WLT).

    Anchors are treated independently by the device tracker and the tracker can adjust anchors to help keep them locked to the physical world. Because of this we cannot treat all anchors as part of the same rigid coordinate system. This means that you can’t just compute one pose from one anchor to the CAD model and expect the model to stay aligned, especially as the device moves away from that anchor. For this scenario, aka large holograms, WLT can help keep “shift the model” around to keep it aligned using the anchors that happen to be around the device.

    Though WLT could be overkill depending on the end user experience. If you can solve it by simply placing more content (and optionally anchors) in the scene at each bend of the path to avoid guiding users into walls, you would avoid having to deal with the CAD model, CAD model alignment, and WLT altogether.
    "

    Let me know if you have further questions?
    Thanks!

    Remember:

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    1 person found this answer helpful.
    0 comments No comments