2017-01-14 41 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