Why do my three.js examples not load properly?

北慕城南 提交于 2019-12-06 12:29:19

问题


I just downloaded Mr. Doob's three.js project. In the examples folder, anything that doesn't use a model or texture will load up properly. The ones with models or textures show up blank. I don't understand why. I can webgl examples with models and textures to work on the three.js website. Can anybody help, I am stumped...


回答1:


You need to run chrome using the --allow-file-access-from-files flag.

https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally

Also, here's some discussions on how they're trying to solve this:

http://code.google.com/p/chromium/issues/detail?id=121406 http://code.google.com/p/chromium/issues/detail?id=47416



来源:https://stackoverflow.com/questions/12888051/why-do-my-three-js-examples-not-load-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!