level 4
北回归线de落花
楼主
用下面的代码试了试,球根本没有纹理,全黑的
var sphere1, sphere2 ;
function initObject(){
var texture1 = new THREE.ImageUtils.loadTexture('earthmap1k.jpg');
sphere1 = new THREE.Mesh(
new THREE.SphereGeometry(50,50,50),
new THREE.MeshLambertMaterial({map: texture1})
);
scene.add(sphere1);
sphere1.position.set(0,0,0);
var texture2 = new THREE.ImageUtils.loadTexture('moonmap1k.jpg');
sphere2 = new THREE.Mesh(
new THREE.SphereGeometry(5,20,20),
new THREE.MeshLambertMaterial({map: texture2})
);
scene.add(sphere2);
}
2013年07月28日 11点07分
1
var sphere1, sphere2 ;
function initObject(){
var texture1 = new THREE.ImageUtils.loadTexture('earthmap1k.jpg');
sphere1 = new THREE.Mesh(
new THREE.SphereGeometry(50,50,50),
new THREE.MeshLambertMaterial({map: texture1})
);
scene.add(sphere1);
sphere1.position.set(0,0,0);
var texture2 = new THREE.ImageUtils.loadTexture('moonmap1k.jpg');
sphere2 = new THREE.Mesh(
new THREE.SphereGeometry(5,20,20),
new THREE.MeshLambertMaterial({map: texture2})
);
scene.add(sphere2);
}
