Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Cardboard with multiple "heads"

Discussion in 'AR/VR (XR) Discussion' started by cowlinator, Jan 6, 2015.

  1. cowlinator

    cowlinator

    Joined:
    Mar 15, 2012
    Posts:
    69
    Has anyone gotten the cardboard sdk to work with multiple "head" prefabs (camera rigs)? I turned off the one under CardboardMain and added 2 others (one with depth-only, etc). It runs fine in the editor, but on Android devices, it fails to render anything after the first frame and gives me buffer and EGL errors.
     
  2. dolims

    dolims

    Joined:
    Sep 13, 2014
    Posts:
    61
    Yep, I've gotten it to work. In the SDK's demo scene, I put a little "rear view mirror" in the upper left of the screen, using a stereo rig facing backwards. Never ran into any buffer/EGL errors. Could be you have to make sure only one of the Main Cameras is actually tagged "MainCamera". Could you post some log snippets?
     
  3. cowlinator

    cowlinator

    Joined:
    Mar 15, 2012
    Posts:
    69
    I figured this out shortly after I asked. I had tried to delete the cardboard "head" childed under the "CardboardMain" prefab (the one with the Cardboard script), because I was not using it. Cardboard didn't like that. So I instead turned off the "head" gameObject under "CardboardMain".

    Thanks dolims
     
unityunity