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 Anchors get out of sync

Hi, I am trying to get a shared experience to work correctly with 2 devices such that both users can tap a hologram and move it around the room.

What is working correctly thus far

  • I launch the app on device 1, it connects to the sharing service
  • I also have the remote head manager running so I see Spheres around other user's heads
  • I launch the app on the device 2, and after a few seconds, it is able to get the world anchor from the device 1 and the starting hologram then moves to the same location as seen on the first device.
  • If I move the hologram from the device 1 (using a modified version of TapToPlace), the updated transform information is sent to the sharing service and the second device is able to download the updated transform position and rotation.
    Here is where the issues start

  • If I move the hologram from the device 2, the two devices get out of sync and the world anchors stop getting updated.

  • After moving a hologram from device 2, device 2 no longer gets an updated position when I move the hologram on device 1.

Because a lot of this code is event driven and there are multiple update loops running checking state and whatnot it makes it difficult to trace visually and debug. I am aware that there is the holograms 240 course, which I am familiar with, but I want to get a sample working using the actual holotoolkit and not the version that is used in that course.

Has anyone else run into this sort of scenario or is there something I am missing here?

Unit Project structure

(I have my TapToPlaceWithSharing script attached to the cube object)

Answers

  • I know this is an old post but were you able to solve this? I'm running into a similar error.

Sign In or Register to comment.