Wings 3D Development Forum

Full Version: How to create .mat files (for materials)? (simple)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I'm pretty much a complete noob, I just started modeling yesterday for fun, so hopefully this is an easy question.

I'm having issues exporting my models from Wings to Unity. Basically, I have no problems exporting the objects themselves, but my colors (materials) often don't stick and unity just loads grey/plain copies instead. I FINALLY figured out yesterday that I need all the materials to be in .mat format and in the same place as my OBJ files for Unity to recognize them all as assets, and then it loaded them all with color and everything worked for the models I made yesterday, but now I'm having problems making new .mat files in the first place. Every time I export (in OBJ format) all I'm getting is the OBJ file and a .mtl file which I don't think Unity can read, and I guess I forgot(?) how I made the .mat files for my other models' materials yesterday in the first place?

If someone could let me know how to save my materials so that they show up as .mat files with accompanying .mat.meta files that would be awesome Biggrin They're just colors that I made via [right click] -> [Material...] and I can view them all in Wings via [Window] -> [Outliner]

Thanks and hopefully this is a dumb/easy question! Biggrin

(I put some white rectangles over parts of the screenshot to reduce it below 300KB)

Kilajuk
Kilajuk,
I guess there are not very many Unity users that come to this forum. I found the following thread after googling. Unity and .mtl files

Sounds like you need to import the obj and then import the texture instead of the .mtl file to use .obj.

There is a link in the thread that took me to the following site... Unity Manual


It looks like Unity will accept Collada (.dae) files. Export from Wings3D as Collada and see if that works.

oort
http://www.wings3d.com/forum/showthread.php?tid=1590

Hey there,

Look into this theard. I explained everything step by step how to do it.
If you have got any questions feel free to ask. Smile