如何使用Google Cardboard SDK for Unity创建VR Video Player [英] How to create VR Video player using Google Cardboard SDK for Unity

查看:313
本文介绍了如何使用Google Cardboard SDK for Unity创建VR Video Player的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Google Cardboard SDK,以实现统一.我很好,能够创建VR项目.设置正常,一切正常.

I just downloaded Google Cardboard SDK for unity. I am fine and able to create VR project. Setup is fine and everything is working fine.

我是VR Apps的菜鸟.刚刚加入了VR Apps.

I am noob at VR Apps. Just stepped in VR Apps.

我计划为自己的Android创建自己的VR启用视频播放器,就像默认的Google Cardboard Youtube播放器一样.

I am planing to create my own VR Enabled Video Player for android, Just like the default Google Cardboard Youtube player.

任何人都可以向我建议一个链接或可以指导我开发此应用程序.

Can any one suggest me a link or can guide me in developing this app.

推荐答案

Scott Driscoll的答案完全有效.使Easy Movie Texture Unity插件为我工作时遇到了一些最初的问题,但最终弄清楚了,它可以完美地工作.现在,我在iPhone 6的球体内部运行了360视频作为纹理.我不得不说,我认为这不会发生.

Scott Driscoll's answer totally works. I had some initial problems getting the Easy Movie Texture Unity plug-in to work for me, but finally figured it out, and it works flawlessly. I now have 360-video running as a texture on the inside of a sphere on my iPhone 6. And I have to say, I didn't think it would happen.

要在Mac上工作,这就是我所做的:

For working on a Mac, here's what I did:

  1. 从Unity Asset Store下载Easy Movie Texture插件
  2. 从Assets/EasyMovieTexture/Scene中打开Demo Sphere演示场景
  3. 为您的项目创建一个新的(空)预制件,并将Sphere GameObject从Demo Sphere场景拖到Prefab上.
  4. 重新打开您的Cardboard场景并将新的videosphere预制拖动到您的层次结构中.
  5. 在Quicktime中打开您的360度视频源
  6. 文件->导出-> 720p
  7. 将文件扩展名从".mov"更改为".mp4"
  8. 将新的mp4文件拖放到项目的Assets/Streaming Assets目录中.注意:请勿通过菜单系统导入,因为这将迫使Unity转换为OGG.
  9. 在您的Videosphere GameObject的"Media Player Ctrl"脚本组件上,找到"Str_File_Name"字段并提供FULL文件名.确保将扩展名包含在字符串"mymovie.mp4"中.

很确定这就是一切.希望它可以帮助其他人解决这个问题.谢谢斯科特·德里斯科(Scott Driscoll)!

Pretty sure that's everything. Hope it helps other folks stuck on this problem. Thanks Scott Driscoll!

最后一个注释,您只能在手机上观看视频,而不能在编辑器中预览.如果它不能以这种方式工作会更好,但是实际上一旦解决了最初的分辨率和位置问题,我就不需要每次在编辑器中运行场景时都观看视频.

One last note, you can only view the video on the phone, not in preview in the editor. It would be better if it didn't work this way, but really once the initial issues of resolution and placement are resolved, I don't really need to see the video every time I run the scene in the editor.

这篇关于如何使用Google Cardboard SDK for Unity创建VR Video Player的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆