Google IOS 的 Cardboard VR 应用出现黑屏
Black Screen in Google Cardboard VR app for IOS
我在 unity 中创建了一个 3d 游戏,并将 google cardboard sdk 添加到我的项目中。我为 IOS 构建了游戏并用 xcode 打开了它。
当我 运行 游戏时,虚拟眼镜(双眼屏幕上的黑框)被加载,中间的细白线将它们分开。但是屏幕的其余部分(游戏视图)仍然是黑色的。正在播放游戏音效。
我花了大约 2 小时研究这个问题,但没有找到解决方法:(
你知道解决办法吗?
编辑:
这是我在 iphone 上 运行 游戏并将其连接到 xcode 时的游戏日志。
W1028 13:14:58.468868 1 commandlineflags.cc:1311] Ignoring RegisterValidateFunction() for flag pointer 0x103dc9060: no flag found at that address
2019-10-28 13:14:58.543700+0800 3D Beginner Game nofader[6067:1880658] Built from '2019.1/staging' branch, Version '2019.1.14f1 (148b5891095a)', Build type 'Release', Scripting Backend 'il2cpp'
2019-10-28 13:14:58.548904+0800 3D Beginner Game nofader[6067:1880658] -> registered mono modules 0x1039b3710
-> applicationDidFinishLaunching()
2019-10-28 13:14:58.618918+0800 3D Beginner Game nofader[6067:1880658] Metal GPU Frame Capture Enabled
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A13 GPU
Initialize engine version: 2019.1.14f1 (148b5891095a)
2019-10-28 13:14:59.525441+0800 3D Beginner Game nofader[6067:1880658] INFO [vr/gvr/capi/src/gvr.cc:116] Initialized GVR version 1.170.0
2019-10-28 13:14:59.639509+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
2019-10-28 13:14:59.639745+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
Created eye textures with a "separate" layout. The "multi-pass" stereo mode will be used.
2019-10-28 13:14:59.954764+0800 3D Beginner Game nofader[6067:1880658] [Assert] -[UIApplication setStatusBarOrientation:] and -[UIApplication setStatusBarOrientation:animated:] API have been deprecated on iOS 8.0 and are no-ops on iOS 13.0
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
2019-10-28 13:15:01.223206+0800 3D Beginner Game nofader[6067:1880658] [Common] _BSMachError: port 13203; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2019-10-28 13:15:01.239173+0800 3D Beginner Game nofader[6067:1880658] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x131f037a0>.
UnloadTime: 2.187667 ms
GVR SDK for Unity version: 1.200.1
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
No controller support on this platform.
Gvr.Internal.ControllerProviderFactory:CreateControllerProvider(GvrControllerInput)
GvrControllerInput:Awake()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
对我有用的:
将您的 unity 版本降级到 2018.3
我在 unity 中创建了一个 3d 游戏,并将 google cardboard sdk 添加到我的项目中。我为 IOS 构建了游戏并用 xcode 打开了它。
当我 运行 游戏时,虚拟眼镜(双眼屏幕上的黑框)被加载,中间的细白线将它们分开。但是屏幕的其余部分(游戏视图)仍然是黑色的。正在播放游戏音效。
我花了大约 2 小时研究这个问题,但没有找到解决方法:(
你知道解决办法吗?
编辑:
这是我在 iphone 上 运行 游戏并将其连接到 xcode 时的游戏日志。
W1028 13:14:58.468868 1 commandlineflags.cc:1311] Ignoring RegisterValidateFunction() for flag pointer 0x103dc9060: no flag found at that address
2019-10-28 13:14:58.543700+0800 3D Beginner Game nofader[6067:1880658] Built from '2019.1/staging' branch, Version '2019.1.14f1 (148b5891095a)', Build type 'Release', Scripting Backend 'il2cpp'
2019-10-28 13:14:58.548904+0800 3D Beginner Game nofader[6067:1880658] -> registered mono modules 0x1039b3710
-> applicationDidFinishLaunching()
2019-10-28 13:14:58.618918+0800 3D Beginner Game nofader[6067:1880658] Metal GPU Frame Capture Enabled
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A13 GPU
Initialize engine version: 2019.1.14f1 (148b5891095a)
2019-10-28 13:14:59.525441+0800 3D Beginner Game nofader[6067:1880658] INFO [vr/gvr/capi/src/gvr.cc:116] Initialized GVR version 1.170.0
2019-10-28 13:14:59.639509+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
2019-10-28 13:14:59.639745+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
Created eye textures with a "separate" layout. The "multi-pass" stereo mode will be used.
2019-10-28 13:14:59.954764+0800 3D Beginner Game nofader[6067:1880658] [Assert] -[UIApplication setStatusBarOrientation:] and -[UIApplication setStatusBarOrientation:animated:] API have been deprecated on iOS 8.0 and are no-ops on iOS 13.0
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
2019-10-28 13:15:01.223206+0800 3D Beginner Game nofader[6067:1880658] [Common] _BSMachError: port 13203; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2019-10-28 13:15:01.239173+0800 3D Beginner Game nofader[6067:1880658] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x131f037a0>.
UnloadTime: 2.187667 ms
GVR SDK for Unity version: 1.200.1
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
No controller support on this platform.
Gvr.Internal.ControllerProviderFactory:CreateControllerProvider(GvrControllerInput)
GvrControllerInput:Awake()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
对我有用的:
将您的 unity 版本降级到 2018.3