Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Stereoscopic Capture value not working

Discussion in 'AR/VR (XR) Discussion' started by leesolarflare, Oct 24, 2019.

  1. leesolarflare

    leesolarflare

    Joined:
    Oct 24, 2019
    Posts:
    8
    Hey Guys,

    So I've been testing the Unity Recorder function with Timeline.

    Have it all working except, the stereoscopic value doesn't seem to do anything, regardless of what value I
    input.
    Can go from 0.064 all the way up to 640.0 and left and right equirectangulars are still the same.

    Have also tried the camera script to generate the left and right cubemaps, and the new built in option in the unity recorder. (See attached).
    Both output the same.

    Anyone else had this issue?

    Also have an issue with some weird artifacts, that seem to generate some noise which is fixed on the frame, in the shape of a triangle.

    But one problem at a time, ;)

    Cheers,
    Lee
     

    Attached Files:

  2. cguertin

    cguertin

    Unity Technologies

    Joined:
    Aug 20, 2019
    Posts:
    53
    Hey @leesolarflare!

    I ran some tests on my end but unfortunately wasn't able to reproduce your issue. Could you tell me which version of Unity and the Recorder package you are currently using? If you have a basic test project you could send that would also be awesome.

    For comparison, I attached a picture of a test with different values for the stereo separation (0.065 and 1.5).

    Thanks!
     

    Attached Files:

  3. leesolarflare

    leesolarflare

    Joined:
    Oct 24, 2019
    Posts:
    8
    Hi cguertin.

    Using Unity 2019.2.6f1. HDRP.
    Recorder version 2.0.3-preview.1

    I was just using the default HDRP scene as a test basis.

    Have exported out the scene as a package to test.

    https://we.tl/t-VNCKysFoBt

    Cheers for your help,

    Lee
     
  4. cguertin

    cguertin

    Unity Technologies

    Joined:
    Aug 20, 2019
    Posts:
    53
    Thanks for the extra information, I can indeed reproduce the issue with your test scene. The problem appears to be isolated with HDRP (the test scene I used was set-up with the legacy renderer).

    I'll file in a bug report with our developers to look into the problem. Thank you for reporting this!
     
  5. leesolarflare

    leesolarflare

    Joined:
    Oct 24, 2019
    Posts:
    8
    Ok thanks,
    i'll look out for an update, as ideally want to use the 2 together.

    The other issue I am getting with the equirectangular output, is a weird triangular artifact that seems to be locked in place on the image, and causes a lot of grain.

    I've put together a gif that shows the camera pushing in towards the scene, but the artifact staying in the same place.
     

    Attached Files:

  6. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    421
    @cguertin any update on this? The latest version of HDRP still doesn't support Stereo Capture feature....
    Is this something we can expect in the future?
     
  7. cguertin

    cguertin

    Unity Technologies

    Joined:
    Aug 20, 2019
    Posts:
    53
    Hey @NathanRH! Unfortunately I still don't have an ETA but it's absolutely something we want to fix in future versions of the Recorder.
     
  8. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    421
    Thanks, that's great news!! Yes I hope it will be fixed in the API level as well as the Recorder. Thanks, looking forward to it!
     
  9. eshaftel

    eshaftel

    Joined:
    Oct 27, 2016
    Posts:
    2
    @cguertin any update on this issue? Running into the same issue using URP and AVPro Movie Capture. Unity 2019.3.15f1
     
    Last edited: Jun 2, 2020
  10. eshaftel

    eshaftel

    Joined:
    Oct 27, 2016
    Posts:
    2
    Just tested this again in 2019.4.0f1 and I cannot get stereoscopic 360 capture using Unity Recorder in a URP project. Both top and bottom are identical regardless of inter-eye distance setting. Do you have an update on what version will fix the support for this, or the timeline? Thanks.
     
  11. adriansotov

    adriansotov

    Joined:
    Jul 14, 2015
    Posts:
    16
    Any news on this? I can't even generate monoscopic 360 in URPL
     
  12. AxonGenesis

    AxonGenesis

    Joined:
    Jun 24, 2016
    Posts:
    23
    I'm having the same problem in Unity 2019.4.1 with URP. The stereo separation parameter has no effect and the left/right images are the same. I have 360 capture enabled in the settings and disabled VR, since that is recommended in the docs for capture mode.

    I'm using a custom render script for output. Here's my original code, which produces identical left and right images no matter what the stereo separation value is set to. Btw VRStereoSeparation is an exposed value in the inspector.

    Code (CSharp):
    1.                            
    2. CubemapCamera.stereoSeparation = VRStereoSeparation;
    3. CubemapCamera.RenderToCubemap(CubemapLeft, 63, Camera.MonoOrStereoscopicEye.Left);
    4. CubemapCamera.RenderToCubemap(CubemapRight, 63, Camera.MonoOrStereoscopicEye.Right);
    5. CubemapLeft.ConvertToEquirect(Equirect, Camera.MonoOrStereoscopicEye.Left);
    6. CubemapRight.ConvertToEquirect(Equirect, Camera.MonoOrStereoscopicEye.Right);
    7.  
    My workaround for now is to use a separate camera for left and right eye and to offset the left camera.
    Code (CSharp):
    1.                          
    2. CubemapCameraL.transform.localPosition = new Vector3(VRStereoSeparation, 0f, 0f);
    3. CubemapCameraL.RenderToCubemap(CubemapLeft, 63, Camera.MonoOrStereoscopicEye.Left);
    4. CubemapCameraR.RenderToCubemap(CubemapRight, 63, Camera.MonoOrStereoscopicEye.Right);
    5. CubemapLeft.ConvertToEquirect(Equirect, Camera.MonoOrStereoscopicEye.Left);
    6. CubemapRight.ConvertToEquirect(Equirect, Camera.MonoOrStereoscopicEye.Right);
    7.  
     
    Last edited: Jul 7, 2020
  13. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    421
    Hi @cguertin

    Is stereo capture still a feature we can expect to be implemented in URP/HDRP?

    Thanks,
     
  14. laurence_

    laurence_

    Joined:
    Jul 22, 2018
    Posts:
    1
    Sorry to bump, any news on the enabling of stereo capture with HDRP?
    Thanks
     
  15. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    421
    *bump*
     
  16. NathanRH

    NathanRH

    Joined:
    Oct 24, 2012
    Posts:
    421
    *BUMP*
     
  17. younes048

    younes048

    Joined:
    Nov 6, 2019
    Posts:
    1
    It's almost 2021 and it's still not fixed, when can we expect an update?
     
  18. unitybru

    unitybru

    Unity Technologies

    Joined:
    Jan 28, 2020
    Posts:
    178
    Hi,

    We are following up with our colleagues in another team whose work is required for this fix, and will keep you updated.

    Thanks,
    Bruno
     
  19. XR-studio

    XR-studio

    Joined:
    Nov 7, 2012
    Posts:
    2
    Is there a workaround for the moment, because adding two camera's with seperation isn't the same as how ODS works.
     
  20. UnitDan

    UnitDan

    Joined:
    Feb 4, 2019
    Posts:
    7
    In Unity 2021.1.4, recorder 2.5.5, hdrp 11.0.0, still not working :/

    I try now the two cam workaround. What do you mean with ODS @XR-studio?
     
unityunity