Three.js and loading a cross-domain image
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know this has been asked before, and I've read ever question and answer I've been able to find, but nothing works. I'm running this on a local server (IIS). I'm trying to load an image from imgur and then use that as texture for an object using the code: var savedImage = /[^?]*$/.exec(location.search)[0]; if (savedImage != "") { savedImageLoad("http://i.imgur.com/" + savedImage + ".jpg"); }; function savedImageLoad(image) { var mapOverlay = new THREE.ImageUtils.loadTexture(image); sphere.material = new THREE.MeshBasicMaterial({map: