Search code examples
unity-game-enginemaya

Struggling with getting Maya-Models into Unity


I recently purchased a few assets online, which are all Maya ASCII-Files, sometimes with some Textures as PSD files, sometimes not. I want to know how to get these Models into Unity and make them look like they were intended to look like. When i open up a model in maya, for example a tree, it just looks like this: Tree

When i drag this file into Unity and put it into some scene, it looks about the same. What do i need to do? I am a programmer and i have absolutely no experiences with Maya. I hope someone can help me out.


Solution

  • Not only were the textures not assigned to the tree, they were not even there. You had to extract each color, bump, normal, spec and transparency maps from the both photoshop files that is sent to you.

    The LeafBunch_Mat needs Color Map,Transparency Map,Bump Map and Specular Map. The Transparency map for the LeafBunch_Mat is not included in the photoshop file. I looked closer and realized that the Color Map name and Transparency map name are the-same. This means that you can use the Color Map of the LeafBunch_Mat as the Transparency Map too.

    TreeBark_Mat needs Color Map, Bump Map and Specular Map.

    In other to fix the rest of the Models, you have to open each photoshop file and open the layer window. There are Diffuse, Specular and Normal Maps in each layer. Enable each one and save each one out.

    For the image below,

    1.The Diffuse map should be plugged to Color slot in Maya.

    2.If the Material says Leaf in the name just like the image below, then you also have to plug the Diffuse map to the Transparency slot in Maya.

    3.Plug the Normal map to the Bump Mapping slot in Maya.

    4.Plug the Specular Map in the Specular Color slot in Maya.

    Once you fix all these, you can then export it to Unity. It should work.

    To conclude this, next time you receive a model that doesn't show anything, you have to check which maps are used then check which ones are missing on the materials then manually re-plug them.

    The circled icon in the image below shows that there is a map plugged into this slot. So you must click on it and chose where the maps are located in your computer.

    enter image description here

    The circled icon in the image below shows that there is NO map plugged into this slot. So, ignore it.

    enter image description here

    Here are the maps to change in your Leaf material:

    enter image description here

    For the Tree bark material, you don't need to plug anything to the Transparency slot. Hopefully, this guide you fix other models.

    Fixed version. You can download it from here. Just unzip it Whereever you want and open the AmericanSweetgum.mb file.

    enter image description here