I'm facing some challenges with incorporating a simple 3D object created in Maya into my Three.js project using JSONLoader. The object consists of various materials (Lambert and Phong) and different colors. I used Maya to create a .obj file, then Blender to convert it to .json format. Initially, everything seemed fine. However, when I try to import the object while loading its original materials, the model fails to load. Strangely, if I use a random material during loading, I am able to successfully load the model.
var loader = new THREE.JSONLoader();
loader.load("http://localhost:8000/object/planev2.json", function(mygeo,mymat){
var mat = mymat[0];
mymesh = new THREE.Mesh(mygeo,mat);
mymesh.scale.set(50,50,50);
scene.add(mymesh);
});
TL;DR - Can an object with multiple materials be loaded directly from a .json file?