2016-12-02 40 views
0
加载纹理

我试图在从Azure提供的简单网页中嵌入VR视图。下面是操作的页面: https://beaker.azurewebsites.net/360/Google VR错误:无法从

正如你可以看到我得到一个Render: unable to load texture from "//beaker.azurewebsites.net/360/images/Zest.jpg"

的VR视图工作正常,由谷歌主办的潜水图像。 storage.googleapis.com/vrview/examples/coral.jpg,但关于如何将我的映像托管在Azure中并不适用于VR视图。正如您可以在珊瑚VR视图下方看到Zest.jpg图片一样。

这里是我的html:

<html> 
    <body> 
     <h1>VR View examples</h1> 
     <iframe width="100%" height="300px" allowfullscreen frameborder="0" src="//storage.googleapis.com/vrview/2.0/index.html?image=//beaker.azurewebsites.net/360/images/Zest.jpg&is_stereo=true"></iframe> 
     <iframe width="100%" height="300px" allowfullscreen frameborder="0" src="//storage.googleapis.com/vrview/2.0/index.html?image=//storage.googleapis.com/vrview/examples/coral.jpg&is_stereo=true"></iframe> 
     <img src="/360/images/Zest.jpg"/> 
    </body> 
</html> 

我尝试添加CORS的googleapis.com,但是这似乎并没有帮助的。 enter image description here

我不知道为什么它不工作...任何想法,将不胜感激。

我看到了这些其他职位: VR View - Render: Unable to load Texture from image.jpg

Google Vr - Unable to load texture

但这些都像不同的问题。

回答

0

好吧,我想通了。我的CORS网址错了。我是在googleapis.com

我的新CORS之前缺少storage子域弄成这个样子:storage.googleapis.com这工作:)