我试图在loadTexture中使用Three.js中的本地映像,但是我得到了以下错误:Uncaught SecurityError:在‘WebGLRenderingContext’上执行'texImage2D‘失败:可能没有加载.我有一个运行在apache (本地)上的java应用程序,它使用下面的url:来服务我的映像。下面是我尝试加载图像的javascript代码:
var woodTexture = new THREE.ImageUtils.loadTexture('http:
我试图加载一个obj文件,但是在控制台上我得到了两个错误: Access to XMLHttpRequest at 'myfilepath.obj' from origin 'null' has beenthree.module.js:35911 GET myfilepath.obj net::ERR_FAILEDload @OBJLoader2.js:301
(anonymous) @ index.ht