i´m new to unity4, so i do some tests for the production pipeline in our office.
like in the unity docs (http://docs.unity3d.com/Documentation/Manual/HOWTO-ImportObjectMax.html)
i have made a standard-3dsmax material that is mapped diffuseslot uv1 and selfilluslot uv2 with maps.
if i import it to unity, i get a diffuse shader / base material with no lightmap. i have to convert the shader manually to lightmapped-diffuse shader and pick up the lightmap manually.
the script of Wildpepper ( lighmap batch assigner) is no more to buy and nowhere to find
it seems THE tool for everyone with this workflow.
is there a method in unity4 to get this done in a second if i have a hundred of lightmaps?
The lightmap will not come into 3DS max attached, you aren’t doing anything wrong. The documentation is only talking about getting the lightmap UV’s into unity, not the actual lightmap texture hooked up.
To make a system to automatically connect the light maps I wrote something that parses the name of objects and the names of the light maps, and hooks them up like that.
So you name your objects something like:
L010_Chair
L009_Lamp
and then name your light maps something like
L001_FrontRoom
and then based on the L### tag on the object name, or lightmap name, write a script to automatically plug the right information in to where it needs to go.