Search Unity

[SOLVED]VR Distortion Correction Problem

Discussion in 'AR/VR (XR) Discussion' started by freedom667, Apr 27, 2017.

  1. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I have Distortion Correction Problem. In unity, The game is working fine, so distortion correction working correctly but in my Phone working problem. I didn't understand. I using GVR 1.40 and I checked VR Support Daydream and Cardboard. What am I doing wrong? Because I can not get the right screen in VR Glass. Mobile is Galaxy S7, VR Glass is Gear VR
     
  2. mira_leung

    mira_leung

    Official Google Employee

    Joined:
    May 17, 2016
    Posts:
    70
    The GVR Unity SDK supports only Daydream and Cardboard, so it will not support Gear VR on-device.
     
  3. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I using Play Cardboard App if you know and I can use Gear VR. So when i wear the glasses not opening Oculus.
     
  4. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    Here's the screen

    In Unity

    In Mobile

    Do not be deceived by the gray color. This is Splash Screen.
     
  5. Red_Dragon69

    Red_Dragon69

    Joined:
    Sep 7, 2015
    Posts:
    115
    Hy,
    this may be a stupid question, but is your phone correctly paired with the viewer? As it is with cardboard, the screen distortion will be calculated, when scanning the cardboard QR code on the viewer with your app.

    Best regards,
    Max
     
  6. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    Okay, but it's just my application too. There is no such problem in other applications.
     
  7. Red_Dragon69

    Red_Dragon69

    Joined:
    Sep 7, 2015
    Posts:
    115
    So the distortion is different in other applications? I just tried the cardboard app with a big viewer and a small phone and the resulting image looks similar to yours in Editor and on the device. When wearing the cardboard viewer, everthing works fine.
     
  8. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    It was working right in advance, but now It works wrong. I did not understand anything
     
  9. Red_Dragon69

    Red_Dragon69

    Joined:
    Sep 7, 2015
    Posts:
    115
    Have you updated to Unity 5.6? Because right now I'm testing on 5.5.
     
    Last edited: Apr 28, 2017
  10. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    It was doing it at 5.5 too. It was not working properly.
     
  11. Red_Dragon69

    Red_Dragon69

    Joined:
    Sep 7, 2015
    Posts:
    115
    Ok... sry, I can't think of anything more possibilities. :/
     
  12. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    anybody help?
     
  13. Selaphiel

    Selaphiel

    Joined:
    Jan 31, 2014
    Posts:
    23
    Daydream will only work with daydream supported phones, so you can build with cardboard only for galaxy s7 and gear vr can be used with your app but with micro usb not pluged in. Also if you have to target for Gear VR then you have to select occulus sdk in player settings instead of cardboard or daydream.
     
    Last edited: Apr 28, 2017
  14. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I choose only cardboard but same problem. I created new project and installed GVR 1.40, then i tried in my phone but same problem
     
  15. Selaphiel

    Selaphiel

    Joined:
    Jan 31, 2014
    Posts:
    23
    Which platform are you targeting ? I mean to say - Gear VR, Cardboard or Daydream ?
     
  16. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I have Gear VR but i using Play Cardboard App. So when i choose Cardboard, I can play cardboard games. In Unity I choosing Cardboard platform
     
  17. Selaphiel

    Selaphiel

    Joined:
    Jan 31, 2014
    Posts:
    23
    Does your app work fine without Gear VR on mobile?
     
  18. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    I put the image above. so it's not any difference.
     
  19. Selaphiel

    Selaphiel

    Joined:
    Jan 31, 2014
    Posts:
    23
    If you have followed all the right steps from here, then it should have worked. Try checking for adb logcat errors on your device.
     
  20. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    i tried steps in this site but same again. Does it just do it on my device? because I did not understand. it was correctly in advance. 1-2 months ago but now doesn't work correctly. This happened after updating to android 7.0
     
  21. Selaphiel

    Selaphiel

    Joined:
    Jan 31, 2014
    Posts:
    23
    Try rolling back to android 6.0 and check
     
  22. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    But why is there no such problem in other applications? I do not understand it
     
  23. SiliconDroid

    SiliconDroid

    Joined:
    Feb 20, 2017
    Posts:
    302
    Do a daydream only build of a minimal project (empty scene) and post link to APK here, I can try it on my phone and let you know how it appears.
     
  24. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    daydream is not necessary. my problem is Cardboard. if you want i can send the apk for you
     
  25. SiliconDroid

    SiliconDroid

    Joined:
    Feb 20, 2017
    Posts:
    302
    OK send me a cardboard APK and I'll try it.
     
  26. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
  27. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    did you look at it?
     
  28. SiliconDroid

    SiliconDroid

    Joined:
    Feb 20, 2017
    Posts:
    302
    Just checked it, works perfectly, same as other cardboard apps.

    NOTE: My phone was in daydream mode, so I had to reconfigure for cardboard by scanning the QR code for my cardboard headset. Have you tried resetting your phones cardboard setup with QR code?
     
  29. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    how will i do it?
     
  30. SiliconDroid

    SiliconDroid

    Joined:
    Feb 20, 2017
    Posts:
    302
    Hit the settings gear icon on cardboard overlay menu.
    Click headset to setup.
    You need QR code for your HMD, or choose any generic code:
    https://thevrking.com/vr-headsets-qr-codes-list/

    Just point your phone cam at QR code as its displaying on PC or other phone.
    It doesn't explain why your phone was applying correct distortion to other cardboard games. But it may fix it?
     
  31. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    425
    SOLVED. I did default viewer and fixed the problem. Thanks for help.