- Home /
Unity3D and Google Cardboard 3Models black lines on screen
Hi to everybody
I am newbie on Unity and Googgle cardboard. My project was to create an Android application with possobility to Virtual Travels. For example if the user wants to visit the State of Liberty, the user can chose in the menu and see the State of Liberty in Virtua world.
The problems is that when trying to put any 3D models a have a lot of black lines on the screen when launch it on any Android devices. if launch it on the computer there are no any lines. As i understood 3D models are to heavy for the android device or it is other issue. Some pictures with black lines. Plugin GoOglE Cardboard on default Sorry for my English
Answer by samuel-levine · May 19, 2021 at 06:36 AM
I just ran into this issue a full six years after this question was asked, on Unity 2020.3.4f1!
For posterity - checking "Disable Depth & Stencil" in the Player Settings fixed this behavior.
I took screenshots that look almost exactly like the above, except with solid black vertical lines to start. The "shifted" pattern occurred when moving the app to the background and back to the foreground again.
We ran into this behavior more often on scenes with multiple worldspace canvases, and the artifact vanished on device when enabling the Frame Debugger, which was super frustrating. With the cardboard library (and several others?) in the project, we even saw this behavior occurring in a completely fresh scene, with a default camera, tracked pose driver component on the camera, and a single worldspace canvas below it with an Image component and no sprite.
So... we never figured out exactly what caused it... but I'd love to hear an answer if anyone ever does!
Answer by Oswaldom · May 19, 2021 at 12:42 PM
On all apps that I can find that use Cardboard in iOS 14 (iPhone), the VR view is insanely bugged. The camera swings wildly all over the place.
1 On all apps that I can find that use Cardboard in iOS 14 (iPhone), the VR view is insanely bugged. The camera swings wildly all over the place.
The official Google Cardboard app-store application is broken as soon as you start it. It is also broken on the app I develop for which uses GVR and Unity.
Weirdly, it will temporarily function as expected if you restart your iPhone. The time it takes to break is seemingly random - sometimes it will be broken right away, and sometimes it will work for hours before breaking.
We have tested this on two iPhone 8+, and an iPhone 11.
Things I have tried:
Updating to beta iOS14.2 does not fix the issue. Rebuilding in Xcode 12.2 Beta does not fix the issue