Recently, I delved into some experimental work with Blender and the Collada Loader in three.js. Within my Blender project, I have three distinct objects, but when using the loader in three.js, I can only manipulate them as one single scene object. While everything is functioning properly, including the imported materials from Blender, I find myself pondering if there is a way to extract the individual objects from the scene object, convert them into three.js meshes, and subsequently animate them independently without resorting to creating multiple .dae files.
Below is the snippet of code I've been working with:
var loader = new THREE.ColladaLoader();
loader.options.convertUpAxis = true;
loader.load( 'scene.dae', function ( collada ) {
dae = collada.scene;
dae.position.set(0, 0, 0);
dae.scale.set(50, 50, 50);
scene.add(dae);
});
Any insights or suggestions would be greatly appreciated. Thank you for your assistance!