Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

World anchors & multiple objects

Hello,

I have the following scenario: multiple objects need to be placed all over a building. They will not change their location once the app is run. It is difficult to place the object in advance so I am considering using world anchors and/or Vuforia.

In the case of world anchors, I am planning to place them one by one. However, I have been wondering what would happen if I need to go back and rebuild the app. I would have to go again and place the objects, wouldn't I?

I can also place the markers around the building but it is a little bit difficult at all locations. one or two are ok but not more than that.

I also read about using saved models of the spaces as the reference, load them into Unity, position and the object and align it by trial and error.

Do you have any suggestions which method would be the best for this scenario?

Thanks,

Krzysztof

Answers

  • stepan_stulovstepan_stulov ✭✭✭
    edited February 2017

    Hi, @KaeR

    My answer is in Unity, I'm not sure if you're using pure Windows API.

    I presume you are using world anchors to pin the holograms to the spatial mapping. As far as I understand you wish to preserve these world anchors in between application redeployments/updates. World anchors can be stored in two ways: WorldAnchorStore and WorldAnchorTransferBatch.

    The former is persistent between application relaunches but as far as I know is erased on application redeployments. World anchor stores are "local" to one specific app, there is no access to to the store of one app from within another.

    The latter is your lucky shot. You can fill the batch with your anchors, serialize it into a byte array and then do whatever you wish with the bytes: write to a file, write onto a server, send to another HoloLens over network, etc. Batches are app-agnostic and can technically be shared even between different apps. You simply need to choose the means of persistence that survive the redeployment.

    Hope this helps.

    Building the future of holographic navigation. We're hiring.

Sign In or Register to comment.