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.
Spatial Understanding: Use already scanned room mesh
Hi,
I currently wonder if the following is possible: the SpatialMapping component recognizes, when the user is in a already scanned room and takes this already scanned mesh to work with. But SpatialUnderstanding does not do this (maybe just in my application?!). I find this behaviour strange, because SpatialUnderstanding is based on SpatialMapping, so why doesn't it use the already scanned mesh as a base instead of doing a new scan every time?
My concrete usecase is first to make the scanning process faster for the user and second I hope to get better results for generating planes out of the mesh when using the finalized SpatialUnderstanding-Mesh (which is fully closed/has no holes).
Have a great day
Nik
Best Answer
-
OptionsReeley ✭✭✭
The SpatialMapping just gets its mesh from the hololens. The SpatialUnderstanding will use the mesh provided from the SpatialMapping and smooth it out. So it does calculations on the SpatialMapping mesh. If you dont save those calculated meshes you have to do the calculation process again.
I think saving and loading those meshes should be part of the SpatialUnderstanding scripts, but currently it isnt so you have to do it yourself.
5
Answers
Well SpatialUnderstanding is only for scanning and understanding of the mesh you have to manually save it.
Have a look at the scripts of JeffPack which he posted here
You may have to modify them a bit. Works pretty well!
Thanks for your really fast answer and pointing me to this issue, it indeed helps me a bit!
But the real question remains: why doesn't SpatialUnderstanding kind of Import the SpatialMapping-mesh already exisiting, as it is based on SpatialMapping. It always starts a new scan, no matter what (but the underlying SpatialMapping component already has the "full" room mesh available).
The SpatialMapping just gets its mesh from the hololens. The SpatialUnderstanding will use the mesh provided from the SpatialMapping and smooth it out. So it does calculations on the SpatialMapping mesh. If you dont save those calculated meshes you have to do the calculation process again.
I think saving and loading those meshes should be part of the SpatialUnderstanding scripts, but currently it isnt so you have to do it yourself.