Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

Hololens: Share a WorldAnchor between individual apps

I can create a WorldAnchor through HoloToolkit-Unity and I can restore them, when they are available.

But how can I create WorldAnchors via the Holo Remote app and transfer them to my standalone-deployed app to use as well when I built the same app and uploaded it to the hololens?

There exists a method to share WorldAnchors through a server, but that is not what I'm looking fore, because here is only 1 Hololens device involved. Ideally I want to transfer them locally or mark them as shared somehow.

Tagged:

Best Answers

Answers

  • ReeleyReeley ✭✭✭

    I think you have to export the WorldAnchors to a file and import them on your deployed app, because WorldAnchors are dependent to your app instance.

    Good thing is Unity has a class for Importing/Exporting WorldAnchors:
    WorldAnchorTransferBatch class

    Maybe its just easier to place your holograms in the deployed app tho.

  • This looks like what I want.
    The question is, how do I get that byte string or file from my destop machine into the hololens?

    Could I use the integrated explorer in the webinterface? Or would I need to write an external method myself?

  • edited August 2017

    @Reeley said:
    You could transfer the file to the Hololens via the webinterface i guess. Just put it e.g. in the CameraRoll folder and load it from there.

    I also save my WorldAnchors to the CameraRoll (kinda stupid to save it there but i didnt find a better folder yet).
    Here is a thread where i asked how to save my file there:
    https://forums.hololens.com/discussion/7435/save-file-on-hololens-not-in-local-app-folder

    Basically in my app i have the option to save my WorldAnchors to the CameraRoll folder and when reinstalling or updating my app i load the file from the folder so i dont lose my WorldAnchors in the process.

    @Reeley: I red your thread and there seems to be a problem for me, that iirc there is no way to export the worldanchorstorage on the Holo Remoting Interface.
    Currently I place virtual objects right on top of their real counterparts from the 3D-Capturing.
    I have to place them by hand in the unity editor through the holo remoting interface.
    I wrote scripts that I can then save the current gameobject position as a world anchor, which gets restored on app restart.

    I want to take those worldanchors and put them into the deployed app.

    As far as I understand it, i could switch the world anchor storages between two installed apps, but not between the holo remoting app and my deployed app. is that correct?

Sign In or Register to comment.