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.

How to save spatial understanding results ?

After scanning the room and trying to "understand" it, is there a way to save the result of all this "understanding" process (on the device,locally) in order to avoid rescanning/understanding again at each launch ?

Best Answer

Answers

  • ahillierahillier mod
    Accepted Answer

    Hi @DomDom,
    Check out this thread from the HoloToolkit for saving the understanding mesh:
    https://github.com/Microsoft/HoloToolkit-Unity/issues/188

  • Thanks a lot, I will test this code ASAP. After reading a lot of documentation about world anchors, the coordinates systems, etc ... It finally makes sense but it's not that easy because the necessity to have world anchors is a very new concept for an old-school game programmer ;-)

  • @DomDom,
    The Anchor concept is new to us all, and it was definitely the hardest feature for me to wrap my head around too! Only with mixed reality do we need to consider tethering our game objects to the real world :)

  • Hi all,

    So i tried the load ans save methods, it works but I don't really understand how I can indicate to the SpatialUnderstanding module it must use my fresly loaded mesh instead of trying to use the one that cames from the SpatialMapping.

  • It seems I have to write my own SpatialUnderstandingSourceMesh in order to get meshes from my loading instead of from the SpatialMappping object :-( It seems quite a lot of work for such a standard task.

  • My idea (tell me if I'm totally wrong) You could add a SaveToFile Method in the SpatialUnderstandingCustomMesh class and a LoadFromFile method in the SpatialUnderstandingSourceMesh. Of course, if the LoadFromFile method is used, there is no need to fetch the meshes from the spatialmapping because all the meshes needed are loaded from the file. I do not known if it's a good idea or not but this is what I'm gonna try because I stuck anyway ;-)

    Thanks

  • @DomDom said:
    After scanning the room and trying to "understand" it, is there a way to save the result of all this "understanding" process (on the device,locally) in order to avoid rescanning/understanding again at each launch ?

    Hello :) ,

    Have you found the most reliable solution for this? I also want to avoid "rescanning/understanding again at each launch" like you sad.

    Can you please help me?

    Young HoloLens Developer,
    Andrew

    P.S: Thank you in advance)

Sign In or Register to comment.