2017-01-14 43 views
0

我已经在简单的.html文档中重新创建基本场景,并且在Chrome中只能在Firefox Nightly中正常工作。需要一些帮助,thnks。A-Frame“构建基本场景”问题

铬: doesn't load textures enter image description here


每晚: everythig is ok enter image description here

+0

请添加您的代码,否则我们无法帮助您做任何事情。 – marche

+0

Sry基因,我的坏 ' < a-light type =“ambient”color =“#445451”> ' –

+0

嗯。 A-Frame应该在这些图像上注入“crossorigin”标志。它在Chrome上适用于我。控制台问题? – ngokevin

回答

0

我想直接从您的计算机访问文件时遇到一个浏览器不一致(即地址与file://,而不是开始http://https://)。

如果您打开this JSFiddle,您会在Chrome和Firefox中看到纹理。

从本地文件系统加载数据时,Chrome比Firefox更加严格。要解决此问题,您可以run a local webserver或使用JSFiddle,JSBin,CodepenGlitch