Serve three.js?

巧了我就是萌 提交于 2019-12-04 17:27:46

I tried to serve the example page. You have to change some links in the page for it to work. Like change

<script src="../build/three.min.js"></script>

to

<script src="http://threejs.org/build/three.min.js"></script>

And

loadTexture( 'textures/cube/skybox/px.jpg' ), // right
...
loadTexture( 'textures/cube/skybox/nz.jpg' )  // front

to

loadTexture( 'http://threejs.org/examples/textures/cube/skybox/px.jpg' ), // right
...
loadTexture( 'http://threejs.org/examples/textures/cube/skybox/nz.jpg' )  // front

The page loads perfectly and three.js code also works. I don't understand how socket.io comes into picture. So maybe, it is causing problems.

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