My experience with Three.js involves using the AssimpJSONLoader to load objects. One specific object I loaded was cube_cone, a simple 3D model featuring a cube with a cone on top.
var loader1 = new THREE.AssimpJSONLoader();
loader1.load( 'models/assimp/cube_cone.json', function ( object ) {
object.scale.multiplyScalar( 1 );
object.material.color.setHex(0x666666);
scene.add( object );
}, onProgress, onError );
My first challenge was changing the color of the object. I attempted to do so by using: "object.material.color.setHex(...)".
Additionally, I wanted to manipulate the color of a specific child object within cube_cone, for example, just the cone. This child object, named test_cone.json, contains children with names like "3DSMesh_0" and "3DSMesh_1". How can I access these children to modify only part of the object?
As a beginner in Javascript, any assistance you can provide would be greatly appreciated.