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.

SpatialAnchor and WorldAnchor save in the same store?

I read somewhere that these two are synonymous of one another, so I assumed they would save to the same store.
I have a UWP saving a SpatialAnchor to the store and I'm trying to load it in a 3D one. But nothing loads.

Below the code to load the WorldAnchor:

void Start()
{
    WorldAnchorStore.GetAsync(AnchorStoreReady);
}
void AnchorStoreReady(WorldAnchorStore store)
{
    anchorStore = store;
    string[] ListaAncoras = anchorStore.GetAllIds();
    txtRef = AncoraText.GetComponent<TextMesh>();
    txtRef.text = Convert.ToString(anchorStore.anchorCount);
    foreach ( string x in ListaAncoras)
    {
        txtRef.text += x + " - ";
    }
}

This returns 0 on the count and no IDs. And I am sure I am saving the SpatialAnchor well, as I can load it again on my UWP app.

Any clue?
Basically what I need is to transfer a coordinate system of a frameofreference from the UWP to the 3D. Hence why created a SpatialAnchor from the frame of reference coordinate system and persisted it to the store.

Sign In or Register to comment.