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

Google Cardboard Lens Distortion = Invisible UI

Discussion in 'AR/VR (XR) Discussion' started by janiche, Apr 8, 2016.

  1. janiche

    janiche

    Joined:
    Jan 4, 2015
    Posts:
    52
    Hello, I'm trying to make a simple VR Player, but when I run my project, for some reason UI disappears, only in VR Mode, but if VR Mode is deactivate and I play it un 360 mode, all UI is visible.

    Some one knows a solution?? because I need it with VR mode.
     
  2. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    732
    Hi,

    Can you describe more or give video example?
     
  3. janiche

    janiche

    Joined:
    Jan 4, 2015
    Posts:
    52
    In the images below You can see GUI in 360 mode and VR. In VR both camera see the GUI, but with distortion GUI is invisible.

    Captura de pantalla 2016-04-10 a las 11.29.25 a.m..png
    Captura de pantalla 2016-04-10 a las 11.29.51 a.m..png
     
  4. TechnicalArtist

    TechnicalArtist

    Joined:
    Jul 9, 2012
    Posts:
    732
    Try with your ui in google cardboard demo scene.
     
  5. EGMarchitecten

    EGMarchitecten

    Joined:
    Oct 13, 2015
    Posts:
    2
    We have the same issue. We reverted back to 5.3.4P1 to fix the issue. Started the project again and everything worked. Really strange. I looked at the release notes, but nothing jumps at me that could result in this issue.
    I haven't tried the default Cardboard demo.
     
  6. janiche

    janiche

    Joined:
    Jan 4, 2015
    Posts:
    52
    Thanks, I run my project on Unity 5.3.4p1 and it worked. Maybe a patch bug, I hope can be fixed in next patch
     
  7. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,061
    Just encountered this bug in 5.3.4p4. Installing 5.3.4p1. I now have 3 versions of Unity installed. Very frustrating.
     
  8. ugur

    ugur

    Joined:
    Jun 3, 2008
    Posts:
    692
    Hello there,
    i reported this bug with repro case a short while ago and it was looked into and i was told it's fixed with the latest 5.4 beta. So either you have to go with that or for the meantime use an older 5.3.4 build from before the bug was introduced.
     
    Devil_Inside likes this.
  9. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,061
    Awesome! Thanks for the update!
     
  10. ugur

    ugur

    Joined:
    Jun 3, 2008
    Posts:
    692
    you're welcome =)
     
  11. helgewt

    helgewt

    Joined:
    Jul 21, 2015
    Posts:
    12
    I also encountered this bug in Unity 5.3.4p4.
    The bug is still present in Unity 5.3.4p6.
    Reverting to Unity 5.3.4p1 did the trick.
    I have not tested other 5.3.4 patch-releases.
     
  12. helgewt

    helgewt

    Joined:
    Jul 21, 2015
    Posts:
    12
  13. keenanwoodall

    keenanwoodall

    Joined:
    May 30, 2014
    Posts:
    588
    Do you think it has anything to do with the distortion correction? Do you have it set to "Unity" or "Native"?
     
  14. ugur

    ugur

    Joined:
    Jun 3, 2008
    Posts:
    692
    No, according to the feedback by the Unity fellas on the bug report i sent on this it is a bug on Unity side where the Canvas ui does not get rendered in Rendertextures (which google cardboard's cam setup uses) and yes, the fix should be in 5.3.6. As helgewl said, until that's available best use an older version from before the bug was introduced like Unity 5.3.4p1.
     
  15. helgewt

    helgewt

    Joined:
    Jul 21, 2015
    Posts:
    12
    The fix is scheduled for 5.3.5p5 (source)
     
unityunity