Lightmapping UV problem

So I have my object imported into Unity. I have Generate Colliders and Generate Lightmap UV checked. I set the object to static, then I try to begin a directional light baking in the scene. I get the warning that UV set on X is incorrect. Lightmapper needs UVs inside the (0,1)x(0,1) space. How to I fix this? I thought checking “Generate Lightmap UV” would solve this problem.

3 Answers

3

I ran into this problem when I was lightmapping several objects whose (regular) UVs included values over 1.0 in order to tile the texture. The number of errors were the same as the number of objects with that type of UV mapping, so that must have been the source of the problem.

Great! That solved it for me too. Strange that Unity should need UVs inside [0,1] even before lightmap-uv generation, but as soon as I moved the stray uvs of the first set back into the [0,1]x[0,1] range (in maya), the errors disappeared.

try create a uv channel 2 in 3d package and export it again. Without checking the generate lightmaps uv on…

enjoy

Ivan

I discovered that that error will sometimes appear when you have mesh compression turned on the mesh importer.