agentleFS
MuhrashyaMuhrashya/Blender-kit/skills/blender-uv-bake/SKILL.md

blender-uv-bake

Skill1 starsChanged 14 days agoMITView on GitHub

Use for UV unwrapping, auto-seams, texel density, island packing, zero-bleed per-facet palette atlases, and baking normal, AO, curvature, or procedural PBR maps from high-poly or shader nodes to exportable textures. Triggers: UV, unwrap, seam, texel density, bake, normal map, AO, texture stretched.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call MCP tool uv_unwrap_and_pack (script mode: kit_uv_unwrap in docs/blender/scripts/blender_kit_ops.py) with:

    line 17

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UV and bake (universal auto-seams, texel density, facet atlas & map baking)

Requires

Low-poly mesh that passed blender-topology (audit_mesh pass). HP object for realistic/stylized bakes. config.md texel density + texture sizes. engine.md Materials row (normal map convention, color spaces).

Inputs

Role | texture size (config.md) | UV mode (auto_seams | conformal | smart_project | cube_project | cylinder_project | sphere_project | zero_bleed_facet_atlas) | HP name if baking.

Steps

  1. DECISION CHECK: if state.md has not locked the UV/texture strategy (Q1: UV Mode — Zero-Bleed Per-Facet Palette Atlas vs Auto-Seam Angle/Conformal Unwrap vs Box/Cylinder/Sphere Projection, Q2: Texture Resolution & Map Slots), present Q1..Q2 with (Recommended) first.
  2. PATH by style (style.md): palette / low-poly (voxel, lowpoly) -> section A of references/uv-rules.md or method="zero_bleed_facet_atlas"; baked / PBR (stylized, realistic) -> section B of references/uv-rules.md.
  3. NATIVE SEAMS, UNWRAP, TEXEL DENSITY & PACK (uv_unwrap_and_pack):
    • Call MCP tool uv_unwrap_and_pack (script mode: kit_uv_unwrap in docs/blender/scripts/blender_kit_ops.py) with:
      • method="auto_seams" (marks seams at boundary edges + hard edges >= seam_angle_deg, unwraps with ANGLE_BASED, and packs islands with island_margin).
      • method="conformal" for hard-surface/curved shells where conformal LSCM preservation beats angle-based unwrap.
      • method="zero_bleed_facet_atlas" for low-poly / palette meshes (assigns each face its own padded cell in [0..1]^2 with >= 6px inner padding, zero bpy.ops required).
      • method="cube_project", "cylinder_project", "sphere_project", or "smart_project" for architectural, tubular, spherical, or mechanical parts.
    • Set scale_to_target_density=True with texture_size and target_density_px_per_m from config.md to normalize texel density automatically.
  4. TEXEL DENSITY AUDIT: run audit_run_isolated(audit_type="uv", target_objects=[...], texture_px=..., target_density=...) (or docs/blender/scripts/audit_uv.py). Keep all islands within +-20% tolerance and out_of_bounds_uvs == 0.
  5. BAKE (baked styles, dual_cage high-to-low, or procedural-to-texture): call MCP tool bake_maps (script mode: kit_bake_maps in docs/blender/scripts/blender_kit_ops.py, e.g., lp_obj_name, optional hp_obj_name, maps=["NORMAL", "AO", "DIFFUSE", "ROUGHNESS"], cage_extrusion, margin), or follow references/bake.md. Verify by look screenshot: LP with baked map vs HP/reference.
  6. SAVE working textures to <session_dir>/assets/<asset>/textures/ (or blender-out/<asset>/textures/ on SHIP); pack images (img.pack()); names per config.md.
  7. AUDIT: run audit_run_isolated(audit_type="uv") and audit_run_isolated(audit_type="visual_match") (bleed_ratio <= 0.05).

Hard rules

RuleDetail
One UV set for the game textureextra sets only if engine.md lists lightmap/second UV use
0-1 spaceall islands inside 0-1 unless the role is tiling/trim (then state it in state.md)
Zero bleed on low-poly atlasesper-facet cells must include >= 6px inner padding so bleed_faces == 0
Texel densityone project value; assets within +-20 percent
Color spacesbase color sRGB; normal/roughness/metallic/AO Non-Color
Bake inputsHP and LP aligned, scale applied, normals consistent

Done when

has_uv; audit_uv.py and audit_visual_match.py pass; baked or atlas maps exist and look verification screenshot shows zero stretching, seams, or white occlusion blotches; textures saved and named.

On fail

FailureAction
Density out of tolerancerescale islands; re-pack; rerun audit_uv
Bake artifacts or white occlusion patchesrepack into padded per-facet UV cells or adjust cage/ray distance (blender-diagnose row B)
Seams visibleraise island_margin; move seams to hard/hidden edges
Stretched UVslower seam_angle_deg in uv_unwrap_and_pack or switch between auto_seams and smart_project

Next

blender-material -> blender-rig (deforming) or blender-qa.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.