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.

World Anchor Sharing - Unity

Hi,
I am trying to follow this guide in order to get my own network code for world anchor sharing in Unity.
https://developer.microsoft.com/en-us/windows/holographic/shared_holographic_experiences_in_unity
I currently have some working codes that can send the data from one hololens to the other. However, the call to
WorldAnchorTransferBatch.ExportAsync(transferBatch, OnExportDataAvailable, OnExportComplete);
generates eight instances of OnExportDataAvailable with bytes array of different sizes (from 4 bytes to more than 400kB). I tried to use each array independantly with
WorldAnchorTransferBatch.ImportAsync(importedData, OnImportComplete);
But the object that is related to the world anchor is not changing position, or at least does not seem to become closer to the position seen from the Hololens sending the anchor.

The unity documentation does not bring much light on this issue
https://docs.unity3d.com/550/Documentation/Manual/windowsholographic-anchorsharing.html
https://docs.unity3d.com/550/Documentation/ScriptReference/VR.WSA.Sharing.WorldAnchorTransferBatch.html
Does anybody have experience with those functions and can help me make sense of the output/input of WorldAnchorTransferBatch?

Thanks

unred.org

Best Answer

Answers

Sign In or Register to comment.