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.
Options

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

Answers

  • Options
    F4QVR3DF4QVR3D
    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!

    Cheers,
    Fabian

Sign In or Register to comment.