Is it feasible to import a scene from Blender into JSON format and then differentiate between two different cubes within the scene?
I want to be able to distinguish them, for example, to have one cube rotating while the other moves.
Thank you in advance!
Denv
Edit +++
Thanks for your response!
If I load two cubes from one JSON file:
loader.load("untitled1.js", function(geometry, materials) {
mesh = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial(materials));
mesh.scale.set( 10, 10, 10 );
mesh.position.y = 0;
mesh.position.x = 0;
scene.add( mesh );
});
How can I manipulate the position of the first cube?
mesh.getObjectById(0).position.x = 15;
It doesn't seem to be working as expected.
Thank you!