"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

How to create shared AR?

I would like to create a shared AR, where I would like to:

  1. spawn a cube for each player on an ImageTarget
  2. allow them to control the position of their cube
  3. allow them to see the movements of all other players' cubes

I'm using PUN 2 as my networking library, where I have no issue synchronizing the positions and rotations of all cubes. However, the cubes do not stay on the ImageTarget properly and are "jumping" around. On the other hand, if I place my two phones very close together and point them at the ImageTarget at roughly the same angle, the cubes do not jump as much anymore.

This leads me to think that the 2 instances of ARCamera fail to realize that they are pointing at the same ImageTarget from 2 different angles, and instead think that the ImageTarget exists in 2 different orientations at the same time.

Is there any way for me to tell Vuforia that I'm using multiple instances of ARCamera pointing at the same ImageTarget?

Thanks so much in advance!

I've solved the issue by going to the ARCamera gameobject, then in the Vuforia Behavior component, I changed the World Center Mode from DEVICE to FIRST_TARGET. This allows multiple instances of ARCameras to be in different positions.

Hi there,

good you were able to figure out a solution!

I am also trying to create a shared AR with PUN2, but have some troubles synchronizing the objects (or cubes as in your case).

Do you mind sharing your code or project with me? That would be very appreciated. Thanks!

This looks helpful to you! https://medium.com/tribalscale/creating-a-real-time-synced-multi-device-ar-app-in-24-hours-4c6c8c37877a