2012-08-01 35 views

回答

0

问题是你不能使用外部托管的质感。这里是我为了在飞机上放置纹理而创建的一些代码。我相信我修改了这个代码来自MRP doob的一个项目:

img = new Image(); 
texture = new THREE.Texture(img); 
    img.onload = function() { 
    texture.needsUpdate = true; 
    makeParticle(); 
    }; 
img.src = "http://www.aerotwist.com/tutorials/creating-particles-with-three-js/images/particle.png"; 

geometry = new THREE.PlaneGeometry(438, 695, 200); 
material = new THREE.MeshBasicMaterial({map: texture});