How to create VR Video player using Google Cardboard SDK for Unity

后端 未结 5 1491
走了就别回头了
走了就别回头了 2020-12-23 08:34

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.

I am noob at VR Apps. Just s

5条回答
  •  一向
    一向 (楼主)
    2020-12-23 09:21

    This has become very simple for Unity 5.6 and above.

    1. You just need a sphere with its normals inverted which you can either find online or just go to blender and make an IcoSphere and flip its normals or you can use a shader to do the same on a normal sphere. In either case use an Unlit texture for the shader.
    2. Add a Video Player in the component which comes default with Unity to this sphere.
    3. Add any 360 degree video to this Video Player. You can also add an online link as well. And it plays consistently well throughout the range of platforms from GoogleVR to SteamVR.

    The only downside is, it only plays monoscopic images/videos by default and there requires some tweaking to run stereoscopic images/videos.

提交回复
热议问题