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.

Downloading offline-captured spatial mapping data over USB

I'm trying to figure out how to access spatial mapping data that is captured on the HoloLens and transfer it to my computer via USB so I can manipulate it in Unity. I do not want to use wi-fi through the emulator or USB through the Device Portal to record the data in real-time, as the area I'm scanning is very large so wi-fi is not available everywhere and being tethered by a 3 foot USB cable won't work. Does anyone know how to store and download spatial mapping data from the HoloLens in this way?

Answers

  • @ChilUser,

    The Device Portal (via a WiFi or USB connection) is the mechanism to download the Spatial Mapping data that can be loaded into Unity at design time.

    I have been able to, successfully, map a large space (my team's workspace) by walking through my space and visualizing what has been mapped by air-tapping while in the shell. Once I finished mapping, I returned to my desk and connected (via WiFi or USB) to the Device Portal.

    From the 3D View page, click Update. The page will display the space you have mapped. You can download the data, as a .obj file, by clicking the Save button. You can then import the .obj file as an asset in Unity.

    Thanks!
    David

  • This seems to work just OK when the HoloLens is still connected to Wi-Fi, but it's still not importing all of my scanned mesh and doesn't seem to really work when out of Wi-Fi range. Have you had the same experience? Also, it would be nice to be able to see live feedback of the scan progress rather than guessing while walking around and then coming back to the computer to see what you got.

  • Hi,

    I would like to ask a related question. I would also like to integrate the Spatial Mapping and the storage of that information to my application, so the user can decide when to enable/disable it and when to store or not this data.
    According to the documentation here (https://developer.microsoft.com/en-us/windows/holographic/device_portal_api_reference) everything that is done in the Device Portal is a REST-based API so I imagine I could do what I want with some scripting, but I figured out that when it comes to spatial mapping what is happening is that a socket connection is open and a 'getsrdata' command is being sent.

    Is it still possible to integrate somehow this functionality so that we can store the Spatial Mapping data using our application?

    Thanks!

    Regards,

    Javier

Sign In or Register to comment.