我一直在尝试按照示例等在我的页面上设置 VR 视图https://developers.google.com/vr/concepts/vrview https://developers.google.com/vr/concepts/vrview,我使用的图像是从我的设备复制的纸板相机“照片”,但为了确定起见,我还使用了常规 jpg 版本。
无论我在小部件加载时尝试什么,它都只会显示错误消息
渲染:无法从 image.jpg 加载纹理
我还注意到很多教程或示例网站都存在同样的问题,我认为他们在第一次发布页面时没有遇到同样的问题。
有谁知道为什么这样做以及如何解决它?
Cardboard Camera 生成的图像格式不正确。 VR视图需要等距柱状全景图像,对于立体图像,需要将它们堆叠起来。看https://developers.google.com/vr/concepts/vrview#supported_formats https://developers.google.com/vr/concepts/vrview#supported_formats以供参考。
有一个链接可以将 Cardboard Camera 图像转换为正确的格式:https://storage.googleapis.com/cardboard-camera-converter/index.html https://storage.googleapis.com/cardboard-camera-converter/index.html
还有一些使用 VR 视图进行演示的 Codelab,包括将图像转换为正确的格式:https://codelabs.developers.google.com/?cat=Virtual+Reality https://codelabs.developers.google.com/?cat=Virtual+Reality
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)