Wings 3D Development Forum
How to create .mat files (for materials)? (simple) - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Interface & Usage (https://www.wings3d.com/forum/forumdisplay.php?fid=3)
+--- Thread: How to create .mat files (for materials)? (simple) (/showthread.php?tid=2034)



How to create .mat files (for materials)? (simple) - Kilajuk - 06-30-2016

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


RE: How to create .mat files (for materials)? (simple) - oort - 06-30-2016

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


RE: How to create .mat files (for materials)? (simple) - Marcin Maćkowiak - 07-02-2016

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