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.
Anchor App-Start-Position (stage origin)
Hi,
I want to anchor the start-position of my app. My app is always in the same room, and i want it to be always at the same position and heading in the room. I want to calibrate this position (maybe via bluetooth keyboard). Right now, I have to position myself (the HoloLens) at a very specific position+heading when I start the app. I don't want the user to do this every time and occasionally I get some offsets when the HoloLens rescans parts of the room.
Should I just use spatial anchors or is there a simpler solution to set the stage origin for a given room?
Thank you and best regards,
Hans
Best Answer
-
rimber ✭
I'm assuming you want to position the objects inside your app in same way every single time.
Best way is to create a root object at origin and use WorldAnchorManager to anchor it. Every time you start the app, load the anchor for the root object. This should do the trick.
I've noticed the offset issue as well. It seems the hololens is rather sensitive about the spatial scanning and orientation of the device. Sometimes my room is 70-80 degrees off! If you notice it, simple restart the device so that it tries to detect your surroundings and hopefully fixes it.
5
Answers
I'm assuming you want to position the objects inside your app in same way every single time.
Best way is to create a root object at origin and use WorldAnchorManager to anchor it. Every time you start the app, load the anchor for the root object. This should do the trick.
I've noticed the offset issue as well. It seems the hololens is rather sensitive about the spatial scanning and orientation of the device. Sometimes my room is 70-80 degrees off! If you notice it, simple restart the device so that it tries to detect your surroundings and hopefully fixes it.