I have a mesh in my scene I'm trying to export to OBJ using the OBJExporter script that comes with Three.js. My mesh has multiple materials applied to it, meaning each face has a different materialIndex on it.
This is one mesh with multiple materials applied to it using a THREE.MultiMaterial. According to the .obj specification under "Vertex Texture Coordinate Indices", which I don't fully understand, it says:
Optionally, texture coordinate indices can be used to specify texture coordinates when defining a face.
In the format
f v1/vt1 v2/vt2 v3/vt3
In the .obj data exported by the script, that section just looks like an incremental counter:
f 1/1/1 2/2/2 3/3/3
f 4/4/4 5/5/5 6/6/6
f 7/7/7 8/8/8 9/9/9
f 10/10/10 11/11/11 12/12/12
Additionally, when I save the exported string to a .obj file, and then re-import that using the OBJLoader, then apply a MultiMaterial to it, it only shows one material.
I'm trying to untangle the whole puzzle and have a lot of unknowns. I don't care about the material definition itself, I just care which face has a material index on it. Can the .obj format alone hold a material index for a multi-textured object per face?
