Search Issue Tracker
By Design
Votes
0
Found in
2020.1.0a14
2020.1.6f1
2020.2
Issue ID
1280340
Regression
Yes
The built-in Cube primitive has overlapping UVs when trying to bake Scene's lighting
How to reproduce:
1. Open the attached project named "Case_1280340"
2. Open the Sample Scene
3. Open the Lighting window and click Generate Lighting
Expected result: Scene's lighting is baked with no issues
Actual result: Overlapping UVs error is thrown for the built-in Cube primitive
Reproducible with: 2020.1.0a14, 2020.1.8f1, 2020.2.0b6
Not reproducible with: 2018.4.28f1, 2019.4.12f1, 2020.1.0a12
Notes:
1. Reproducible with SRP as well. Tested with URP 8.2.0
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
The issue is not a bug and is due to the low lightmap resolution, resulting in the overlapping lightmap UV faces of the baked cube mesh. To fix this issue I would recommend setting the Scale In Lightmap value on the Cube gameobject (in the Inspector) to '1.33' or higher and rebaking lighting. Doing this would fit all the unwrapped cube UV faces into the lightmap atlas without overlapping. Alternatively, I managed to fix the issue by bumping up the Lightmap Resolution (in the Lighting window) value to '15' and rebaking. The reason why the warning message wasn't showing up in the previous versions is that it has been introduced in that version.
Please note, that the Lighting team is working on the smarter packing solutions of the lightmap UVs to improve the memory management for the lightmaps.