hello all unity users
i have a questions about Light Maps
I have a scene and the scene is sharing 2 different UV sets.
TYhe fist UV set is done by hand, and the other UV set is done by combining the scene and do a auto map.
What do i do in Unity. i am lost.
My question is, how do i assign my Lightmap to my scene that I UV mapped by hand. Can I export my second UV set out of maya ?, and import it in unity.
Please help guys.
Thank You,
Aldin Bilalovic
I’m not sure if I understand you properly, but if you want to import a UV set to unity take a look at mesh.uv and mesh.uv2 atribute.
I have some good news for you - currently I’m working on a tool for Unity that will allow anybody to render and set their lightmaps easily:
It should be ready 31 August 2009
I believe the two UV maps can be different.
If you export the model out as FBX and import it into Unity, the 2 sets of UV maps should be correctly imported.
I use Modo, so am unsure about Maya, but Bake the Lightmaps to a texture using the Second UV map. (the second UV map is what drives the Lightmaps within Unity). If you only want to use 1 set of UV’s, then you’ll have to bake the lightmap texture ontop of the diffuse texture (combining the two).
Then, when you have the model imported, change the shader on the model to Lightmap/Diffuse. Then you can drag your Diffuse texture map to the first slot and the newly created Lightmap Texture to the second slot. That should be all that is required.
Not sure if this is the info you require to answer your question?!
Matt.