Hi Roofer!
Just wanted to ask some clarifying questions so we can help out.
Successfully scanned the real space through the Space app. I ran an app that activates localization and creates anchors in that state.
I understood this to mean you created a space, scanned it, and set it as the Active space for the system to localize to. While the device recognizes this space and has a status confirming it is localized to that space, you create an anchor and publish it to that space? Is that correct?
And I was able to check the SpaceOrigin value in MLanchors, but the value changes depending on where the app starts. Is this right?
If localized to the space, the Space Origin this will contain the transform of the target space's origin relative to the world origin. As headpose world origin changes anytime there is a new headpose session (eg. device reboot) it should be different yes.
I leave another question because I don't fully understand and I'm using it in the wrong way.
Does the anchor itself or the number of anchors affect spatial perception?
The number of anchors does not impact the localization quality so feel free to use them how you see best. Most use them relative to a unique piece of content or a shared origin for colocated experiences for other uses. The spatial perception as you call is impacted by how well you mapped the space prior. For example if you are standing in an area that you did not map it is possibly the current view of the world would not contain markers that could be matched against your Space and we wouldn't consider the device localized to your Space.
Isn't the Space app itself scanning and figuring out where the user is located? That's what I understand.
The best way to think of the Spaces app is it creates a discrete map that the developer / user can choose to localize to. Currently the device doesn't try to automatically choose one and relies on the developer or user to choose which one they want, the device for QoL reasons will try to always localize to the last connected space.
We have captured feedback from other customers that they would also like an automatic mode in the future and that is something we will report back about once it is available.
As for any questions or feedback on use definitely happy to walk through any questions you have about Spatial Anchors, Spaces, or mapping in general to help you get going in your app.