|
20th August 2009, 12:30 PM | #1 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
naming the materials
Hi all, long time no see... but even though my work coopted the best part of my time, I never actually stopped updating and using AC3D.
Now I'm facing a minor but annoying problem: as I export in .obj format the materials are named "acmat0", 'acmat1', 'acmat2' and so on, 1-to-1 with the standard mats as long as no textures are involved and no new mats were defined, apparently at random as soon as things start to grow more complicated. Then in the final application I still have to find out what is what (by selectively hiding each part), pencil-write down a correspondence table, run a dumb program I contrived to rename the mats, and eventually reload it all. Neither difficult nor challenging but undeniably boring and time-consuming. It would be so much easier to have the possibility of calling each mat, say, "brass", "light wood", "dial", "you name it" directly within AC3D, and then having them exported with the proper names, which would make any further retouching or retexturing a walk on the beach. Is there any hope? |
21st August 2009, 05:07 PM | #2 |
Senior Member
Professional user
Join Date: Mar 2005
Location: Phoenix, AZ
Posts: 917
|
Re: naming the materials
If you go into the settings, on the advanced tab there's a checkbox "enable material name editing". This adds a name field to the material properties dialog.
I don't think all of the exporters will obey this, but many of them will. |
24th August 2009, 03:33 AM | #3 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
Re: naming the materials
WOW, thanks!!!
Going to try it out here and now... |
24th August 2009, 04:48 AM | #4 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
Re: naming the materials
Alas, it works, but within AC3D only!
In the exported files (all formats I tried so far) the materials were still named "acmat0, 1, 2...". Still worse, once materials are renamed those nefarious "acmatX" disappear entirely from the .ac file, thus there seems to be no easy way to build a cross-reference table automatically - unless the exporters number the mats progressively after their order in the .ac file; in that case contriving a simple prog to build the x-ref table and rename them in the .obj shouldn't really take long. As soon as I can (right now I'm expected to take care of my boring Monday stuff) I'm going to check that last possibility and let you know. |
24th August 2009, 05:21 AM | #5 |
Senior Member
Professional user
Join Date: Jul 2005
Location: France
Posts: 737
|
Re: naming the materials
Another solution here : import your ac file into blender and then export to OBJ from there ... works well
__________________
OL. |
24th August 2009, 07:56 AM | #6 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
Re: naming the materials
Thanks luuckyy, I'll try that. Dont have Blender but I hear it's shareware - hope I got it right else my wife would kill me
Luuckyy, your bloody avatar... three times I tried to wipe that stupid fly off my monitor before realising what it actually was :-[))) |
|
|