Material naming with attached meshes (Multi/Sub-object)

theatrus

13-06-2006 08:47:47

When attaching meshes together with different materials, 3dsmax of course creates a Multi/Sub-object material (and gives it a new randomish name, such as Material #11 in this case).

oFusion exports this sub-object material with a / in the name, so if I had materials A and B, I now export:

Material_#11/A
Material_#11/B

In this case, I'm not using the scene manager functionality of oFusion (I have my own for various reasons including physics body loading and more - sure doesn't make level building easy ;)), so I'd like to share a common Materials between all meshes. Is there any way for oFusion to not add the name of the multi/sub-object material to the material name? Granted I can use OgreXMLConverter + script to batch "fix" all of the materials, but this seems like more of a pain than its worth.

Any ideas?

Lioric

13-06-2006 16:42:59

And why with is this an issue when sharing materials for your meshes?

theatrus

13-06-2006 19:10:48

The idea is to get a bunch of my tilesets working with the same material name, so I only have to update one material definition to update them all. As it stands right now, I have to edit the name of the multi-sub/object material (which you have to pick out of the attached mesh object) and still end up with a slightly useless prefix name to it.

Its not a major issue, just one minor annoyance really :).

Night Elf

14-03-2007 15:00:32

Having the option to remove the prefix ("materialName/") would be quite interesting. Right now, each time a material is used in more than one object it gets exported several times with different names. Not a desirable behaviour at all, IMO.

The only solution I can think of right now is to manually edit the materials and leave only one with a common name and then edit the mesh files to reflect the change...

Lioric

14-03-2007 15:14:37

This feature (make "MultiMaterialBaseName/" optional) seems to be useful, added to the list, expect it to be added in the net update