Multiplayer (Photon Bolt) AR with Vuforia

Hi everyone!

TLDR:
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

Right now I'm facing an issue where each player can only see his/her cube, but not the other players' cubes.

Situation:
So far, I'm following the tutorial from Photon Bolt (here). I've reached the point where I have achieved (2) and (3) but without AR (here). The next thing I did was to add Vuforia to the project based on that code, by dragging in an ARCamera, adding an ImageTarget as its child and deleting the main camera. And here is the only script I modified.

NetworkCallbacks.cs:

using UnityEngine;
using System.Collections;

[BoltGlobalBehaviour]
public class NetworkCallbacks : Bolt.GlobalEventListener
{
public GameObject imagetarget;

public override void SceneLoadLocalDone(string map)
{

// get imagetarget
imagetarget = GameObject.Find("ImageTarget");

// instantiate cube
GameObject newCharacter = BoltNetwork.Instantiate(BoltPrefabs.Cube, imagetarget.transform.position, Quaternion.identity);

newCharacter.transform.localScale = new Vector3(5, 5, 5);

// set newCharacter to be a child of ImageTarget
newCharacter.transform.parent = imagetarget.transform;
}
}

I'm new to multiplayer AR game development, and this is for a school project. I'm pretty lost. Would really appreciate it if someone can point me to what might be the problem!!! (I'm open to ditching Photon Bolt and using another networking library if someone has had success with it!)

Comments

  • I'm not familiar with Vuforia but I assume it is just another camera. I'm having trouble understanding what part you are having issues with as you say (2) and (3) are working
  • Sorry for being unclear. (2) and (3) were working without Vuforia, but after I've added Vuforia, none of (1), (2) and (3) were working.
  • I would post on the Unity or Vuforia forums, it doesn't seem to be a Bolt issue