Skip to main content
New Participant
March 24, 2015

photonNetwork.instantiate

hi guys i hope you can help me out
Im creating a ovr multiplayer using photon network, Im trying to instantiate the OVRCameraRig prefab that is in the resources directory.
Im using:
PhotonNetwork.Instantiate ("OVRCameraRig",Vector3.zero,Quaternion.identity,0);


when i build the project , the ovr cam seems to be black, its the only cam in the game, and when i use regular camera object it working fine

thanks in advance for the help

Gal
    This topic has been closed for replies.

    12 replies

    Inspiring
    April 8, 2015
    Yes, I did check out the project files but I am also unsure of what the end goal is here.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    April 9, 2015
    The end goal, for me, is to get the OVRPlayerController to send and receive its location over the network and for the OVRCameraRig to send and receive all HMD movements over the network.

    I figured the easiest way (which worked in Unity 4) was to PhotonNetwork.instantiate the OVRPlayerController, add a PhotonView to both the controller and the CenterEyeAnchor and then send/receive their positions/rotations.

    I will have to work on a work-around based on what MiLO83 suggested. Although simply using an empty game object with a controller attached won't solve this problem, as I need to track the HMD movement as well.