我认为我的问题与this one类似, 但我有两个不平等的结果 blender render和 three js generated scene
js code:
let mesh;
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer();
const loader = new THREE.JSONLoader();
const light = new THREE.AmbientLight( 0x404040 ); // soft white light
light.position.x += 1;
light.position.z += 1;
scene.add(light);
camera.position.z = 5;
// scene.add(cube);
loader.load('untitled.json', function (geometry, material) {
mesh = new THREE.Mesh(geometry, material);
console.log(mesh);
scene.add(mesh);
})
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
function animate() {
requestAnimationFrame(animate);
try {
mesh.rotation.z += 0.001;
mesh.rotation.x += 0.001;
} catch(e){ }
renderer.render(scene, camera);
}
animate();

对应this question。我是trying to UV unwrap model 但是,仍然无法弄清楚。我做错了什么?