我需要将 Maya 转换为 js,以便具有纹理的简单模型可以正常工作,但在没有纹理的情况下显示我的代码: var loader = new THREE.JSONLoader();
loader.load( "models/t2.js", function(geometry) {
var part1 = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial() );
mesh =new THREE.Object3D();
mesh.add( part1 );
//var mesh = new THREE.Mesh(geometry, material);
mesh.position.set(0,0,0);
mesh.rotation.set(0,0,0);
mesh.scale.set(30,30,30);
scene.add( mesh );
});
在线演示: http: //mika.ir/virtual-exhibition/ 下载代码: http: //mika.ir/virtual-exhibition/virtual-exhibition.rar