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.
Space grows when deserializing WorldAnchorTransferBatch based on a bigger space but...
Full question title should have been:
Space grows when deserializing WorldAnchorTransferBatch based on a bigger space but without learning more of the environment.
I have noticed an interesting and somewhat unexpected behaviour that I would like to be commented on or clarified. This is all based on Unity.
Here is a step-by-step reproduction of what I did:
- Clear the current space in the settings.
- Make sure to walk around enough so that the newly created space grows to a bigger size. In my case it was some 45mb.
- In an app create some good number of objects, say 200, objects with world anchors, construct a WorldAnchorTransferBatch of them, serialize it and save it to disk.
- No remove the space in the settings again and do not walk around much but make sure your space is somewhat smaller. In my case it was 19mb.
- Now launch a app that loads that previous WorldAnchorTransferBatch, deserializes it and creates a game object for each anchor in it. Anchors work and objects snap in place.
- Now check the size of the space in settings. It's back to the bigger size that that WorldAnchorTrnasferBatch was based on despite the fact that your head absolutely did no travel around enough to provide the additional extra size of the space.
This leads me to a couple of speculations:
- When unpacking a WorldAnchorTransferBatch the system recognizes that the smaller and the bigger are two versions of the same space and simply merges the two enriching the smaller one. This conclusions seems more likely to me.
- The space doesn't just contain the spatial data but also the anchors in some form. This conclusion seems less likely to me due to the very temporary nature of anchors. Space can't contain every anchor.
I welcome everybody to share their objections, ideas or plain better conclusions to why the space grows upon deserializing a WorldAnchorTransferBatch without really learning more about the environment.
Building the future of holographic navigation. We're hiring.