I have a scene comprised of some objects that can have multiple materials assigned to their mesh. Some materials are shared between multiple objects. When I export it, the .mtl file contains duplicate / redundant materials.
1.) Could someone check the attached .blend scene and verify this. In it there are 3 materials, but the exporters in my case (octane and obj exporter) write down 4 materials in the .mtl file.
2.) Is there a way in Octane to re-assign materials to different parts of the mesh - ie. replace the redundant material indexes with only one instance? Something like 'expanding' the mesh node to see the material nodes and their connections, and then re-assign them?
Also, it seems that the obj exporter writes down only the names of textures in the .mtl file, which is not very useful. Couldn't the Octane exporter write down absolute texture paths for existing texture channels (COL -> diffuse, SPEC -> specular, NOR -> bump...) assigned in Blender, and pass them to Octane? The exporter could still comply to the .obj specification in the .mtl, but write down additional data in the .ocs file.