I am working with a 3D model exported from Blender that consists of two meshes. One mesh is a rigged and animated character, while the other is a hair model. My goal is to selectively hide or change the texture of one of the meshes. I have loaded the model using the following code:
jsonLoader.load('./models/character.js', function(geometry, materials) {
for(var i = 0; i < geometry.animations.length; i++){
THREE.AnimationHandler.add( geometry.animations[i] );
}
var character = new THREE.SkinnedMesh( geometry );
});
Currently, both meshes are behaving as if they are part of one solid mesh.