之所以显示不出来是因为chrome的安全设置
到桌面快捷方式,右键点击chrome,选择属性,在目标的后面添加:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --allow-file-access-from-files
因为我的chrome是在c盘安装的,前面的不用管,重点是
--disable-web-security --allow-file-access-from-files
一定注意空格
然后重启chrome浏览器,就可以加载外部模型了,比如我拿threejs的example试了一下:
本文介绍如何通过修改Chrome浏览器的启动参数来禁用其安全设置,以便能够从文件系统加载本地资源,具体包括添加--disable-web-security和--allow-file-access-from-files参数。
3110

被折叠的 条评论
为什么被折叠?



