Three.js 示例中的纹理问题 [英] Trouble with textures in three.js examples

查看:43
本文介绍了Three.js 示例中的纹理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Three.js 示例时遇到了一些问题.您可以在下图中看到,它似乎在网上运行良好,但在我的桌面上却无法运行.我更改了代码试图找出问题所在,问题似乎出在纹理加载上.你看,如果我将纹理材质更改为某种基本颜色,它会起作用,但如果有纹理,则不会.你们能告诉我这是怎么回事吗?

I'm experiencing some trouble with the Three.js examples. You can see in the image below, it seems to be working fine online, but it's not working on my desktop. I change the code trying to figure out whats wrong, and the problem seems to be on the texture loading. You see, if I change the texture material to some basic color it work, but with a texture, don't. Can you guys tell me what it's wrong?

推荐答案

您的示例未显示,但我希望您的答案在 Three.js wiki 中,了解如何在本地运行.

Your examples are not displaying, but I expect that your answer is in the Three.js wiki on how to run things locally.

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

这篇关于Three.js 示例中的纹理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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