mrdoob/three.js — Issue #1019: how to clone a model
Author: naoomi
Created: 2012-01-04 09:00:07+00:00
State: open

hi:
i am trying to clone a collada model,by adding var g=THREE.GeometryUtils.clone(man);
var material="resources/models/npc_0312.jpg;"
var zmesh = new THREE.Mesh( g, material);
while ,man = collada.scene;
var loader = new THREE.ColladaLoader();
loader.load('test/man.dae', function colladaReady(collada) {
man = collada.scene;
skin = collada.skins[0];
man.scale.x = man.scale.y = man.scale.z = 50;
man.position.y = 30;
man.position.x = -100;
man.position.z = 350;
man.rotation.x=5;
man.updateMatrix();
init();
animate();
});
it seems not work,and it says "Uncaught TypeError: Cannot read property "0" of undefined Three.js 351 ".i have no idea how come?do everybody have a idea?