I am trying to render my Blender object in my threejs scene. This is my first attempt. The loader seems to be able to create the object but I cannot see the object anywhere in my scene. Can anyone provide me with some hints? This is is my Collada loader which is executed in my init function:
var loader = new THREE.ColladaLoader();
var localObject;
loader.options.convertUpAxis = true;
loader.load( 'models/texturecube_s.dae', function colladaReady( collada ) {
localObject = collada.scene.getChildByName('Cube', true);
localObject.doubleSided = true;
localObject.scale.x = localObject.scale.y = localObject.scale.z = 1;
localObject.position.x= 20;
localObject.position.y= 50;
} );
scene.add(localObject);
All other objects (not exported from blender) render fine. Is there anything obviously wrong with this? I can host a demo up if it would help.
Thanks!