googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

[Unity 2017.1.0f3 - iOS] Black Screen When Using VR Mode #271

Closed dustinkerstein closed 6 years ago

dustinkerstein commented 7 years ago

Cross listing this issue here since I believe it's likely more of an iOS GVR SDK bug vs. Unity GVR SDK bug as I don't actually have the Unity GVR SDK installed and I can still replicate this.

https://github.com/googlevr/gvr-unity-sdk/issues/661 https://issuetracker.unity3d.com/issues/ios-cardboard-opengles-black-screen-on-vr-cardboard-builds-with-opengles2

dustinkerstein commented 6 years ago

FYI - This is still reproducible on Unity 2017.1.1p3 and the current 2017.2 beta

fredsa commented 6 years ago

Dustin, do you any additional details which might help us track down this issue?

I'm not able to reproduce the black screen. I just tried building a default project using both Unity 2017.1.1f1 and 2017.1.1p3. Both apps run correctly on an iOS 11.0 phone (A1687 - iPhone 6S Plus).

The only Unity settings I changed were:

dustinkerstein commented 6 years ago

Interesting. Try with the "None" device loaded first and then load the "cardboard" device after startup. I'll try to replicate on a simple project tomorrow morning, but that might be the trick.

On Mon, Sep 25, 2017, 7:15 PM Fred Sauer notifications@github.com wrote:

Dustin, do you any additional details which might help us track down this issue?

I'm not able to reproduce the black screen. I just tried building a default project using both Unity 2017.1.1f1 and 2017.1.1p3. Both apps run correctly on an iOS 11.0 phone (A1687 - iPhone 6S Plus).

The only Unity settings I changed were:

  • Player Settings > iOS > Virtual Reality Supported: enabled
  • Player Settings > iOS > Virtual Reality SDKs > cardboard
  • Player Settings > iOS > Target minimum iOS Version: 8.0 (was 7.0 by default)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlevr/gvr-ios-sdk/issues/271#issuecomment-332040274, or mute the thread https://github.com/notifications/unsubscribe-auth/AHTfKm7Qt8HIf6tdyv28zl87H4FZXr1qks5smDQSgaJpZM4O_U8z .

fredsa commented 6 years ago

Thanks again, Dustin. It seems Metal was set as the default Graphics API for me, which is why I wasn't seeing the issue.

I was able to reproduce the black screen by setting either OpenGLES2 or OpenGLES3 as the first Graphics API:

fredsa commented 6 years ago

I just walked through the Google VR SDK for iOS getting started guide and did not encounter any issues with a black screen.

Closing this issue, as https://github.com/googlevr/gvr-unity-sdk/issues/661 appears to be Unity specific.