Search Unity

Bug Stereoscopic video not working starting at Unity 2019.2 forward

Discussion in 'Audio & Video' started by shdev, Aug 28, 2020.

  1. shdev

    shdev

    Joined:
    Aug 28, 2020
    Posts:
    1
    In Unity 2019.1's when applying a material for stereoscopic video there is a 3D layout option. This allows you to select over and under for 3D stereo videos. In Unity 2019.2's and forward this option has been removed.

    Can anyone else confirm this issue or have a fix for this issue?
    Our projects can't move forward to newer Unity versions without this feature.

    Thanks,
    Sam

    Details:
    Following the below tutorials 2019.1's work, however using 2019.2's and forward do not.
    Tutorial 1: https://learn.unity.com/tutorial/play-360-video-with-a-skybox-in-unity#5dd58153edbc2a00206e701d

    Tutorial 2:


    Sample Stereo Video:


    2019.1's results: stereo and mono videos play as expected.
    2019.2's and forward results: mono videos play, but stereo videos do not. All you get is either a black background or you see both the over and under at same time.

    Unity versions tested that worked: 2019.1.9, 2019.1.12, 2019.1.14
    Unity versions tested that failed: 2019.2.0, 2019.2.21, 2019.3.15, 2020.1.1

    2019.1's material inspector panel image with 3D layout option:
    upload_2020-8-28_8-27-59.png

    2019.2's and forward material inspector panel image without 3D layout option:
    upload_2020-8-28_6-37-44.png
     
    Last edited: Aug 28, 2020
    bjornsyse likes this.
  2. bjornsyse

    bjornsyse

    Joined:
    Mar 28, 2017
    Posts:
    102
    I have the same problem. Documentation says it will appear when checking VR Enabling "Virtual Reality Supported" under player settings. However, this is the Legacy XR setting and I'm using the new XR Plugin management.
    Is there not support for Sterescopic 3D 360 video with that combination?
     
  3. bjornsyse

    bjornsyse

    Joined:
    Mar 28, 2017
    Posts:
    102
    I found a workaround. We can set the flag on the shader via code:

    Code (CSharp):
    1. material.SetFloat("_Layout", 2);
     
  4. bjornsyse

    bjornsyse

    Joined:
    Mar 28, 2017
    Posts:
    102
    (None, 0, Side by Side, 1, Over Under, 2)
     
  5. DigitalIPete2

    DigitalIPete2

    Joined:
    Aug 28, 2013
    Posts:
    44
    Still no real resolution for this issue, come on UNITY!
     
  6. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    260
    Hi everyone!

    I've seen this issue described in a few forum threads at the beginning of the year:
    Rework of the XR settings has left the VideoPlayer without a working solution to discover if VR is enabled for the current platform. So I've reworked the logic and now the controls are back, both in the VideoPlayer and in the Panoramic shader, whenever XR plugin management is enabled.

    The fix made it to 2021.2.0a15, and was then backported to 2021.1.5f1, 2020.3.8f1 and 2019.4.26f1.

    Please let us know if things are back to normal for you (assuming the implied version upgrade is workable for you).

    Dominique Leroux
    A/V developer at Unity
     
    matheus_inmotionvr likes this.