简体   繁体   English

如何在Unity上结合Cardboard VR + Vuforia AR插件?

[英]How to combine Cardboard VR + Vuforia AR plugin on Unity?

Many people are getting good results combining these 2 plugins (Vuforia + Cardboard VR). 结合这两个插件(Vuforia + Cardboard VR),很多人都取得了不错的成绩。 One good example is CMOAR RPG: https://youtu.be/59wkhmPGPcI 一个很好的例子是CMOAR RPG: https ://youtu.be/59wkhmPGPcI

My question is: how to achieve a result like that? 我的问题是:如何实现这样的结果? As indicated on Cardboard VR official documentation, I used the stereoControl script inside my ARCamera and It worked in Play Mode. 正如Cardboard VR官方文档所示,我在ARCamera中使用了stereoControl脚本,并且它在Play模式下工作。 BUT when compiled, running on Android, The application just doesn't show stereo cameras, showing only the single camera. 但是在编译时,在Android上运行,该应用程序只显示立体相机,仅显示单个相机。

A friend of mine said It's a matter of duplicating cameras, but I don't realize how to do this with success. 我的一个朋友说这是复制相机的问题,但我没有意识到如何成功地做到这一点。

Thanx in advance. Thanx提前。

I did something like that by using RenderTexture 我通过使用RenderTexture做了类似的事情

The trick was render what the ARCamera (vuforia) into the texture and snap that texture on a plane that the CameraCardboard see. 诀窍是将ARCamera(vuforia)渲染到纹理中并在CameraCardboard看到的平面上捕捉该纹理。

if you can upgrade to Vuforia 5.0.5. 如果你可以升级到Vuforia 5.0.5。 there's a option to toggle the stereo view and on that point, you dont need Cardboard now. 有一个选项可以切换立体视图,在这一点上,你现在不需要Cardboard。

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

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