Materials: 3dsmax to Unity. "Standard with Self-Illumination texture" to "Lightmapped Diffuse with lightmap texture"

Hi!

I’m trying to make an automatic process to transfer material from 3dsmax to Unity.

In 3dsmax the geometry has a Standard material with one map on “Self-Illummination” channel, that’s a lightmap.

Once imported the fbx into Unity the texture isn’t recognized and the geometry has a normal “Diffuse” base material with no map.

I have to manually create a Legacy Shader–>Lightmapped–>Diffuse and assign the texture on the lightmap slot. In this way all works correctly.

But I really like to avoid the manual process because in complex scenes with a lot of geometry it is very time consuming.

I’m missing something?

I’m using 3dsmax 2015 and Unity 4.5.4 free version

Thanks a lot.

2 Answers

2

You are not missing something, There is only so much information that is transfered between the programs and a “Self-Illummination” channel is not one of them. If your scene is really complicated and we are talking about a ton of materials, I would recommend a good naming convention for your materials and textures in Max, and then writing an editor script in Unity that then reassigns these materials with their appropriate textures.

Just make sure that the ends justify the means as it would be time consuming to do.

On the other hand, if you set up your materials correctly in Max, you may be able to avoid some of this… Unity uses the second Texture Channel as Lightmaps, so if you apply a Texture on the object to channel 2, it will automatically think that it is the light map and assign it on import. This is not the same as a Multisubobject Material that has different Material IDs,

I thank you very very much Anxo for your reply.
Now is clear.

For everyone with the same “problem” as me I’ve found this workflow:

http://www.quitenice.co/blog/2014/9/21/workflow-exploration-3dsmax-to-unity3d-updated

written by Brendan Coyle, at the bottom he makes available for free a script that does exactly what you said: it converts a certain kind of materials to another kind.

Thank you at all.

lol Brendan is a friend of mine, please remember to comment on answers via comment instead of via answer as people who are related to the tags get e-mails when you answer.