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.

Aligning offline Unity coordinates with SRMesh.obj's coordinates

Holograms 230 gives an example where you can load a saved SRMesh.obj (saved via the device portal) into the Object Surface Observer script and show the HoloLens mesh inside Unity on the computer (i.e., not on HoloLens). I'd like to be able to save exactly where the user wearing the HoloLens looked in the room and later load that into Unity on the computer (i.e., not on the HoloLens). I tried doing this, but unfortunately the HoloLens camera pose always starts at position zero and the identity rotation (no matter how the HoloLens is positioned and oriented with respect to the mesh that was saved to be SRMesh.obj). In other words, when I load SRMesh.obj in Unity on the computer and try to add certain saved camera poses (e.g., via saving Camera.main.transform while running HoloLens), those camera poses are not aligned correctly to SRMesh.obj.

I have 3 ideas on how to fix this:
1. Use spatial anchors / world anchors. But would this work in Unity on the desktop computer?
2. Use the most recent HoloToolkit that apparently has some remote mesh capabilities (has anyone tried this?), and hopefully I could save the remote mesh with the right coordinate system...
3. Save the camera poses and the mesh while running on HoloLens, in hopes of this saved mesh being in the correct coordinates.

Does anyone know what the correct solution is to this problem?

Best Answer

Answers

Sign In or Register to comment.