Log in or register to post comments

How to create shared AR?

January 9, 2019 - 3:27am #1

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!

How to create shared AR?

March 27, 2020 - 5:36pm #4

How to create shared AR?

March 24, 2020 - 4:35am #3

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!

How to create shared AR?

January 9, 2019 - 7:50am #2

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.

More info on World Center Mode can be found here.

Log in or register to post comments