Google Vr - Unable to load texture

大憨熊 提交于 2019-12-11 08:17:06

问题


Good morning, i downloaded the google vr script to try to embed in a webpage a 360 image. I wanted to try it but the examples and the index.html page does not work and i get those error messages after the script loading:

page: index.html:

Error: Unable to load scene: Required parameter setting.

page: examples/pano/index.html anks

Error: Render: unable to load texture from examples/pano/andes_512.jpg

Does someone know how to solve that issue? Thanks


回答1:


I had the same problem. You need to host the vr view script on a web server for it to work right. I used XAMPP and it worked fine. Google recommends using a chrome based server though. For more information see: https://codelabs.developers.google.com/codelabs/vr_view_101/index.html?index=..%2F..%2Findex#0



来源:https://stackoverflow.com/questions/39293630/google-vr-unable-to-load-texture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!