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.

Use a real room model to position holograms

Hi everyone :)

Let's suppose that I have created and saved the model of my room.
I'm working with Unity.

My question is:
How I am able to know the exact position where I am, related to the room model?

Thing is that I need to save an hologram position at a specified point. After restarting the application, I need to show the hologram at the exact position.

How can I achieve it?

Best regards


    edited April 2017

    Hi GPDS,
    I ran into something very similar during development - and it is not easy.
    The following approach does not anwser your first question but is a solution for your second question:

    1. Use a setup mode or "Placement" mode when the app is running (the first time). The Holograms 101 Chapter 6 does exactely that.
    2. Once the hologram is positioned correctly, create a WorldAnchor to pin its location and store it in the WorldAnchorStore. Note: You should create a unique id (a string) for your world anchor that matches your object or hologram.
    3. When you start the app again, load your world anchor from the WorldAnchorStore via its Load method.

    You can safely stop the spatial mapping observer mode after the placement is done. It is only needed during the placement mode.

    Hope this helps!


Sign In or Register to comment.