简体   繁体   English

Google Cardboard SDK是否可以与Unity 5一起使用?

[英]Does Google Cardboard SDK work with Unity 5?

I have converted my working project from Unity into Unity 5 and now the stereoscopic display doesnt work. 我已经将我的工作项目从Unity转换为Unity 5,但立体显示不起作用。

It seems like the stereoscopic effect doesnt work. 似乎立体效果不起作用。 The display is split in the middle, and the shader is applied, but it seems like there is only once camera. 显示屏在中间分开,并且应用了着色器,但似乎只有一个摄影机。 Like there are no eye cameras. 就像没有护目镜一样。

The weirdest thing is that everything works perfectly in the editor, but when I run it on device it seems like the cameras are disabled. 最奇怪的是,所有内容都可以在编辑器中完美运行,但是当我在设备上运行它时,似乎相机已被禁用。

I went through and tried everything in the "known issues" in Cardboard SDK Release Notes, but nothing works. 我仔细阅读了Cardboard SDK发行说明中的​​“已知问题”中的所有内容,但没有任何效果。

Has anyone succesfully run a Cardboard game on Unity 5? 有没有人在Unity 5上成功运行Cardboard游戏?

Yes, I have done. 是的,我已经完成了。 Mine isn't big one but has major things that can be said to be using UNITY features as well. 我的不是一个大人物,但也有一些重要的事情可以说是在使用UNITY功能。 I cant predict your problem as such but Answer to this post is certainly YES. 我无法预测您的问题,但是对此帖子的答案肯定是。

I don't think that anyone has posted this yet, but it appears that the SDK is currently broken in Unity 5. 我认为还没有人发布过此消息,但看来该SDK在Unity 5中目前已损坏。

From: Cardboard SDK Release Notes 来自: Cardboard SDK发行说明

Unity 5 rendering issues: As of Unity build 5.0.0f4, the following steps should be taken to fix or ameliorate any rendering issues, such as an all-black screen, flashing textures, or non-stereo views: Unity 5渲染问题:从Unity build 5.0.0f4开始,应采取以下步骤来修复或改善任何渲染问题,例如全黑屏幕,闪烁的纹理或非立体视图:

Enable the Development Build option in the Build dialog. 在“生成”对话框中启用“开发生成”选项。 This seems to fix various rendering glitches, like flashing textures. 这似乎可以解决各种渲染故障,例如闪烁的纹理。

The root cause of the rendering glitches is under analysis, with assistance from Unity. 在Unity的协助下,正在分析渲染故障的根本原因。

I have also found that the app has rendering issues when it initially runs when you hit "Build and Run". 我还发现,当您点击“构建并运行”时,该应用最初运行时存在渲染问题。 Closing the app from the task switcher and restarting seems to resolve the issue. 从任务切换器关闭应用程序并重新启动似乎可以解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM