Search Unity

Question How to render stereoscopic 360 video or textures in URP?

Discussion in 'VR' started by SpatialEffects, Mar 29, 2021.

  1. SpatialEffects

    SpatialEffects

    Joined:
    Jan 13, 2020
    Posts:
    10
    I'm making a 360 video player, and I want to use stereoscopic video. In the past (before SRP) I've done this with two spheres, one with a material with the texture for the left eye, and one with the texture for the right eye. I'd put these two spheres on different layers, and then use the culling mask of two cameras (left eye and right eye) to hide the correct spheres for each eye. Then, if you set the camera's target eye to left & right, the effect worked.

    HOWEVER with URP, the camera target eye only has "none" or "both" as options --- so my technique no longer works. I'd like to stick with URP since then I can also use shadergraph or vfxgraph.

    The target device is an Oculus Quest, so I'm also using the Oculus OVRCameraRig. But testing happens on my PC with an Oculus Rift.
     
    fuzzy3d likes this.
  2. SpatialEffects

    SpatialEffects

    Joined:
    Jan 13, 2020
    Posts:
    10
    Looks like I'll be able to solve my problems with AVPro Video. They have a stereoscopic sphere setup and offer support for URP.