如何在xml3d 5.1中访问资产

如何在xml3d 5.1中访问资产,3d,xml3d,3d,Xml3d,我是学习3d建模的初学者,对xml3d特别感兴趣。我不在里面工作 我想知道如何使用外部资产,我能找到的唯一详细资源是GitHub。本网站展示了如何使用3种资产 它在网上运行得很好,但是当我下载master.zip并从localhost(Windows 10,最新的Chrome浏览器;我使用python 2.7通过python-m SimpleHTTPServer设置本地主机)打开它时,什么都没有显示。我在我的计算机中使用了最新版本的xml3d.js。我将其替换为上述站点实际使用的文件,立方体显示

我是学习3d建模的初学者,对xml3d特别感兴趣。我不在里面工作

我想知道如何使用外部资产,我能找到的唯一详细资源是GitHub。本网站展示了如何使用3种资产

它在网上运行得很好,但是当我下载master.zip并从localhost(Windows 10,最新的Chrome浏览器;我使用python 2.7通过
python-m SimpleHTTPServer设置本地主机)打开它时,什么都没有显示。我在我的计算机中使用了最新版本的xml3d.js。我将其替换为上述站点实际使用的文件,立方体显示正确,而其他两个资产仍然显示

我不明白会发生什么,也没有地方学习使用资产的适当语法

问题:要从localhost复制上述资产示例站点中的结果,是否需要更新语法以在某处使用资产?我正在Windows10上使用xml3d.JSV5.1和python-MSimpleHttpServer


更新:Chrome调试消息

<page.js:107>
xml3d.js: 5.1.0    

<page.js:108>
shade.js: none     

<jquery.js:26 >
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

<xml3d.js:244> 
Uncaught TypeError: Cannot read property '_configured' of null    
g @ xml3d.js:244

<xml3d.js:754> 
TypeError: No FormatHandler could be found for the document http://127.0.0.1:8000/examples/assets/res/assets.xml(…)
c.exports.doLog @ xml3d.js:754
c.exports.logError @ xml3d.js:755
(anonymous function) @ xml3d.js:668

<xml3d.js:754> 
TypeError: Cannot set property '_documentURL' of undefined(…)
c.exports.doLog @ xml3d.js:754
c.exports.logError @ xml3d.js:755
(anonymous function) @ xml3d.js:668

<xml3d.js:754> 
TypeError: No FormatHandler could be found for the document http://127.0.0.1:8000/examples/assets/protos.xml(…)
c.exports.doLog @ xml3d.js:754
c.exports.logError @ xml3d.js:755
(anonymous function) @ xml3d.js:668

<xml3d.js:754> 
TypeError: Cannot set property '_documentURL' of undefined(…)
c.exports.doLog @ xml3d.js:754
c.exports.logError @ xml3d.js:755
(anonymous function) @ xml3d.js:668

xml3d.js:5.1.0
shade.js:没有
主线程上的同步XMLHttpRequest不推荐使用,因为它会对最终用户的体验产生有害影响。如需更多帮助,请查看https://xhr.spec.whatwg.org/.
未捕获的TypeError:无法读取null的属性“\u configured”
g@xml3d.js:244
TypeError:找不到文档的FormatHandlerhttp://127.0.0.1:8000/examples/assets/res/assets.xml(…)
c、 exports.doLog@xml3d.js:754
c、 exports.logError@xml3d.js:755
(匿名函数)@xml3d.js:668
TypeError:无法设置未定义(…)的属性“\u documentURL”
c、 exports.doLog@xml3d.js:754
c、 exports.logError@xml3d.js:755
(匿名函数)@xml3d.js:668
TypeError:找不到文档的FormatHandlerhttp://127.0.0.1:8000/examples/assets/protos.xml(…)
c、 exports.doLog@xml3d.js:754
c、 exports.logError@xml3d.js:755
(匿名函数)@xml3d.js:668
TypeError:无法设置未定义(…)的属性“\u documentURL”
c、 exports.doLog@xml3d.js:754
c、 exports.logError@xml3d.js:755
(匿名函数)@xml3d.js:668

它适用于我在MS Windows上使用XAMPP的情况。请检查来自浏览器的调试消息。对于Chrome浏览器
Ctrl+Shift+i
。它适用于使用XAMPP的MS Windows。请检查来自浏览器的调试消息。对于Chrome浏览器
Ctrl+Shift+i