为什么我的three.js例子不能正确加载? [英] Why do my three.js examples not load properly?

查看:762
本文介绍了为什么我的three.js例子不能正确加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Doob先生的three.js项目。在示例文件夹中,任何不使用模型或纹理的东西都会正确加载。那些模型或纹理显示空白。我不明白为什么。我可以通过webgl模型和纹理的例子在three.js网站上工作。任何人都可以帮忙,我很难过......

解决方案

您需要使用运行chrome - 允许从文件访问文件标志。



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



另外,以下讨论他们如何解决这个问题:

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


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...

解决方案

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

这篇关于为什么我的three.js例子不能正确加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆