Preparing a second UV set for lightmapping an AI-generated static prop

A rounded robot shown as a textured model and a wireframe mesh
A rounded robot shown as a textured model and a wireframe mesh

A wireframe is useful for inspecting the source mesh, but it does not show a completed lightmap UV set.

A static prop that comes back from an AI generator with clean texture UVs is not automatically ready for baked lighting. Material UVs and lightmap UVs solve different problems, and a prop typically needs a correctly built second UV set before it can receive a reliable light bake. This article covers checking what your generated mesh actually has, building a usable second UV channel, and validating a bake in a small static test scene inside Unity.

Why lightmap UVs are a separate job from material UVs

The UV set used for albedo, normal, and roughness maps is built to make textures look correct. It can overlap, mirror, and reuse space across the mesh, since a repeated pattern or a mirrored panel samples the same pixels on purpose and still looks right in a render.

Baked lighting works on a different assumption. Every point on the surface needs a unique location in texture space, because each point can receive a different amount of light and shadow during a bake. If two surface areas share the same UV space, the bake has to average or overwrite their results.

This is why engines store baked lighting in a second UV channel. In Unity, this channel is exposed through the Mesh.uv2 property, the second channel, commonly called UV1 in zero-based counting. Treat it as a separate authoring task with its own layout rules, even when the mesh already has a good material UV set.

Checking whether your AI-generated prop already includes a second UV channel

A prop generated for texturing can look completely clean in its material UVs and still have no second channel at all. A correctly textured surface is not evidence that a lightmap-safe UV set exists, since that is a separate layout governed by separate rules.

It also helps to know that material UVs can, in some cases, already meet lightmap requirements on their own. Confirm that against the checklist in the next section before copying that layout into the second channel. Rendering well alone does not confirm that a layout qualifies as a lightmap UV set.

To check what actually came through, open the mesh in a DCC tool such as Blender, or inspect it after importing into Unity. Look at how many UV channels the file exposes, and inspect the actual UV layout in a preview. Import flags alone can be misleading, so verify the layout directly.

  • In Blender, open the mesh data properties and check the UV Maps list for more than one entry.
  • In Unity, select the imported model and look for existing UV2 data in the model preview, separate from whatever appears only after you enable automatic generation.
  • Do not treat an enabled Generate Lightmap UVs option as proof that a source channel already existed. That setting builds a layout; it does not confirm one.

If only one usable channel is present, plan on adding a second one before you rely on a bake. Export format alone does not settle this either. FBX and glTF can both carry multiple UV channels, but whether a specific export actually contains a usable second set still needs to be checked mesh by mesh.

Requirements a lightmap UV set needs that a material UV set does not

A lightmap UV layout has to satisfy a short list of conditions that a material UV layout is free to ignore. Getting this list wrong is a common reason a bake looks broken even when the mesh renders correctly with regular textures.

RequirementMaterial UV (UV0)Lightmap UV (UV1 / uv2)
Overlapping islandsAllowed, common for repeated texturesNot allowed, each surface area needs its own space
Stacked or mirrored islands sharing coordinatesAllowed when identical material samples are intendedSeparate the coordinates so distinct surfaces have independent bake locations
Padding between islandsProject-dependent; can help reduce texture bleed at mip levelsRequired, scaled to the bake resolution you plan to use
Fit inside 0 to 1 spaceNot strictly required per islandRequired for the whole layout

Padding serves different purposes in each channel. Material UV padding, when used, mainly guards against texture filtering artifacts at distance. Lightmap UV padding exists to stop adjacent islands from bleeding into each other during the bake, and the right amount depends on your target lightmap resolution and texel density, so calculate it for your own project each time; a padding value from another project will not necessarily apply here.

Generating or authoring a second UV set for baked lighting

There are two practical ways to get a usable second UV channel onto a static prop, and the right choice depends on how much control you need over the layout.

The first option lets Unity generate the layout automatically at import time, using the Generate Lightmap UVs option in the Model import settings. This is the fastest route for a prop where an even, unwrap-by-algorithm result is acceptable and hand-placed seams are not a priority.

The second option is authoring the second UV set yourself in a DCC tool before the mesh reaches Unity. In Blender, this means adding a second UV Map, unwrapping it with lightmap rules in mind, unique non-overlapping islands and deliberate padding, and exporting the mesh so both UV channels survive.

Export format matters here. Unity's FBX importer supports multiple UV channels; verify the channels preserved in your exported file. glTF UV channel handling depends on the specific glTF import package and version in your project, so confirm behavior in your own setup, since it may differ from FBX. OBJ does not reliably carry a second UV channel through to Unity and is a poor choice for this workflow.

Assigning the lightmap UV channel correctly in Unity

Once a mesh has a usable second UV channel, Unity still needs to be told how to use it for a specific object in the scene.

  • Select the imported model asset and open the Model tab of its import settings.
  • If you want Unity to build the layout automatically, enable Generate Lightmap UVs and reimport.
  • If the mesh already carries an authored second UV set from your DCC tool, leave Generate Lightmap UVs disabled so Unity keeps the authored data and does not overwrite it.
  • In the scene, enable the object’s contribution to baked GI and set its renderer to receive lightmaps where appropriate. Follow the controls in your Unity version; enabling every Static flag is unnecessary for this UV check.
  • Open the Lighting window and run a bake once the scene and object settings are in place.

Unity reads baked lighting from Mesh.uv2, the same second channel referenced above. If that channel is empty or malformed, the bake can still run, but the result on that object will not reflect a proper unique layout.

Starting with a Tripo mesh before external lightmap UV preparation

Tripo Studio brings generation and model-editing tools into one workspace. A static prop generated with Smart Mesh can provide the source mesh for this workflow. Inspect what the export actually contains before deciding whether to author lightmap UVs manually or generate them in Unity.

Archived Tripo Studio Overview screen showing a lion-like character and its input image
Archived Tripo Studio Overview screen showing a lion-like character and its input image

Archived Studio source-model overview. Author and validate the second UV set in the external lightmapping workflow.

  • Smart Mesh's triangle or quad topology choice is set at generation time, and it is not a separate retopology pass applied after the mesh already exists. Choose the topology before generating.
  • A clean, generation-time UV set from Tripo is built for material use and should not be assumed to double as a lightmap-safe layout, for the reasons covered in the requirements section above.
  • Export the generated mesh as FBX or glTF to preserve topology and existing UV data, then bring it into a DCC tool if you plan to author the second UV set by hand as an alternative to Unity's automatic generation.

Treat the generated mesh as the geometry and material starting point, and treat lightmap UV preparation as a distinct downstream step that happens in Unity's import options or in external DCC software; the generator itself does not resolve this step.

Testing a bake in a static lighting test scene

Build a small, isolated scene before trusting a bake result inside a larger project. This limits the number of variables, so any problems can be traced back to the mesh itself, separate from unrelated scene content.

  • Place the prop alone on a simple ground plane.
  • Add one directional light and set the scene's lighting mode to baked or mixed, matching how you plan to use it in the real project.
  • Mark the prop and ground as Static.
  • Open the Lighting window, keep Auto Generate off if that option is present in your Unity version, and trigger Generate Lighting manually.
  • Let the bake finish fully before judging the result, since a cancelled or partial bake will look wrong regardless of the UV layout.

This isolated scene gives you a clean baseline. If lighting looks correct here but wrong once the prop is placed in a full scene, the cause is more likely scene-level settings than the prop's UVs.

Verifying seams and overlaps after the lightmap bake

After the bake finishes, inspect the prop closely for artifacts that point back to a UV problem specifically. These patterns serve as common indicators. They do not amount to certain diagnoses, since lighting resolution, sample settings, and normals can also produce similar-looking results.

  • Dark or bright seams running along what should be a continuous surface often point to island borders without enough padding, or islands placed too close together in the 0 to 1 space.
  • Blotchy or overlapping light and shadow patches on a surface that should read as one continuous value often point to overlapping islands in the lightmap UV set.
  • Missing or blank patches of lighting on part of the mesh can indicate a UV island that falls outside the 0 to 1 space or was left out of the layout entirely.
  • Noisy or grainy results spread evenly across the surface, without seams tied to island borders, more often point to a bake sampling or resolution setting than to a UV layout fault.

Use the visible pattern to select the next diagnostic check. Confirm overlap or insufficient chart padding in the UV view before rebuilding the layout; inspect normals, lighting, resolution, and samples when the layout is suitable. Re-bake after one controlled change, then repeat the test in the full scene because its packing and lighting can differ.