- Home /
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.
Answer by HonoraryBob · Jun 01, 2013 at 07:56 PM
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.
Answer by nahcnavi · Feb 25, 2012 at 03:06 AM
try create a uv channel 2 in 3d package and export it again. Without checking the generate lightmaps uv on...
enjoy
Ivan
Answer by GizmoBradwell · Sep 05, 2012 at 01:22 PM
I discovered that that error will sometimes appear when you have mesh compression turned on the mesh importer.
Your answer
Follow this Question
Related Questions
Unreal lightmaps VS Unity lightmaps 0 Answers
Manually Inserted Lightmaps: They don't show up 0 Answers
Lightmapping not doing anything 1 Answer
Lightmapping Issues 0 Answers
Lightmapping issues 1 Answer