본문으로 건너뛰기
cccskills
무료GitHub에 공개

blender-texture-baking

Bake texture maps in Blender 5.2 Cycles - high-to-low normal maps with cage/extrusion, AO, curvature, ID, thickness, base color/roughness/metallic from procedurals, ORM packing, OpenGL vs DirectX, margins, GPU baking, fixing skewing/waviness/seams. Use when transferring sculpt or high-poly detail to game meshes or converting procedural materials to textures.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Blender

실행 점수 미검증

설치 방법 보기

포함된 파일(3)

  • SKILL.md5.6 KB
  • scripts/_bpyx.py4.4 KB
  • scripts/bake_maps.py11.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Texture Baking (Cycles)

The execution model is in blender-core. UVs come from blender-retopology-uv and materials from blender-pbr-materials.

One call

scripts/bake_maps.py -- --low SM_Crate --high Crate_high Crate_bolts --maps normal ao curvature id \
   --res 2048 --samples 64 --margin-px 16 --pack-orm --out //textures

Self-bake (procedural → textures, no --high): --low SM_Crate --maps basecolor roughness metallic normal --pack-orm. The script picks the GPU (OptiX/CUDA/HIP/Metal/oneAPI) and falls back to CPU, creates the target images with correct color spaces, cleans up its temporary nodes, and saves T_<name>_<N|AO|CURV|BC|R|M|ORM...>.png.

Preparation checklist (most bake bugs come from this list)

  1. Low poly: UVs unwrapped, no overlaps (stacked/mirrored islands moved +1 U), padding ≥ 8 px at the bake resolution, scale applied.
  2. Hard edges = UV seams on the low poly. Use either smooth shading with the bake handling gradients, or hard edges split at seams. Never put a hard edge inside a UV island.
  3. Triangulate the low poly the same way the engine will, or export the triangulated mesh. Mismatched triangulation shows as shading seams.
  4. High poly covers the low completely and pokes out of it only a little. Floaters (bolts, panel details) can hover just above the surface, but must stay within the extrusion distance.
  5. Names: X_low / X_high pairs. Bake per part, or explode the parts apart (move each pair along an axis) so neighbouring parts don't project onto each other, then put them back.
  6. Apply modifiers on the high poly as needed (multires and subd are evaluated automatically).

Rays: extrusion vs cage

  • --extrusion (meters) pushes the ray origin outward from the low surface. It must be greater than the farthest distance the high poly sticks out of the low. The default is 2% of the low's diagonal; max_ray_distance is 2 × extrusion.
  • Cage (--cage Crate_cage): a copy of the low with the same topology, inflated (Displace/"Push"). Use it when uniform extrusion fails (sharp concave corners, thin parts). Edit the cage locally where rays miss.
  • Too small: holes or missing details. Too large: other parts of the mesh project in (intersections, "ghosting").

Map guide

MapSpaceNotes
normalNon-Color, tangent, OpenGL (--directx for Unreal)16-sample AA is plenty; 8-bit PNG is fine for games
aoNon-Color64–256 samples; bake with the high only (no ground) unless contact AO is wanted
curvatureNon-Color, 0.5 = flatderived from the baked normal (convex white / concave dark); drives edge wear
idsRGBone flat color per high-poly material; use materials as masks
thicknessNon-ColorAO with inside rays; dark = thin; for SSS/translucency masks
basecolor/metallic/opacityvia emission overridereads the Principled inputs of the source materials (also procedural chains)
roughness, emit, combinednative Cycles passescombined = lit result (lightmaps, stylized)
positionfloatgradient masks
ORM = R:AO G:Roughness B:Metallic, the glTF/Unreal standard. Unity uses a different packing (blender-pbr-materials).

Fixing common artifacts

SymptomCauseFix
Wavy lines on cylinderslow poly too low, smoothing gradientsadd segments, use a cage, or more support on the low
Skewed details (bolts lean)ray direction follows the averaged low normalshard edges + seams, a cage, or bake the floater separately
Black/garbage areasrays miss or hit the back facesraise extrusion, fix flipped normals (blender-asset-qa), check high coverage
Seams visible in enginemargin too small, hard edge without a seam, different tangentsmargin ≥ 16 px @2k, seams at hard edges, export tangents (MikkTSpace)
Details from a neighbouring partparts too closeexplode the bake, or bake per object pair
Inverted green look in engineOpenGL/DirectX mismatch--directx for Unreal, or flip G in the texture importer
Stepping/banding8-bit with large flat gradientsbake to 16-bit (float_buffer) and dither on export

Baking non-PBR data

  • Vertex colors: bake.target = "VERTEX_COLORS" with an active color attribute (useful for mobile and Roblox-free shading).
  • Lightmaps: bake combined onto UV2 (--uv-layer UVMap_Lightmap) with the scene lights.
  • Multires (no separate high object): bake.use_multires=True, bake.type="NORMALS"|"DISPLACEMENT"|"VECTOR_DISPLACEMENT", bake.use_lores_mesh=True, then bpy.ops.object.bake_image(). The viewport level is the low, the sculpt level is the high.

Gotchas

  • The target image must be the active Image Texture node in every material of the low object (the script handles this).
  • Baking in Cycles uses the active UV map (--uv-layer to pick).
  • Images aren't saved automatically: img.save() or save_render. Packed or internal images disappear on reload.
  • 5.2: the Cycles texture cache (.tx) is for render memory and doesn't affect bake results.
  • Run blender-asset-qa on low + high first, because flipped normals and floating chunks produce most bake garbage.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Write Blender 5.2 add-ons as extensions - blender_manifest.toml, operators/panels/menus/property groups/preferences, bpy.props rules after 5.0, undo/redo, modal and timer patterns, gpu drawing (no bgl), bundling Python wheels, CLI validate/build/install, testing headless, extensions platform publishing. Use when creating or fixing a Blender add-on, tool, or UI.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

Animation in Blender 5.2 - slotted/layered actions and the channelbag API, Python keyframing, F-curves, game loops, NLA clips, pose library, mocap/BVH retargeting via constraints, baking control rigs to export skeletons, root motion, per-clip export. Use for any keyframe, action, NLA, mocap, or animation-export task.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

Mandatory review gate for any mesh or asset created or edited in Blender. Detects z-fighting (coplanar overlaps), floating/detached parts, inverted or inconsistent normals, non-manifold/open geometry, degenerate faces, duplicate verts, n-gons, unapplied scale, UV problems, bad skin weights, and renders multi-angle review sheets. Use before calling any modeling, export or delivery task done.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

Character rigging in Blender 5.2 - Rigify metarig fit/generate, bone naming/roll/collections, DEF/MCH/control layers, IK/FK, robust skinning (heat + proxy fallback), weight-painting rules, correctives, engine game skeletons (Unity, Unreal, Roblox R15), rig validation and deformation stress tests. Use for armature, skinning or weights tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

Foundation for any Blender 5.2+ task an agent drives - running bpy via MCP (live) or headless CLI, context overrides, locale-safe node lookup, enum discovery, 5.x API changes, verification. Use first for any Blender, bpy, .blend or 3D-asset request; routes to the specialized blender-* skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

Export from Blender 5.2 with verified presets - Roblox (FBX/glTF, cages, R15, SurfaceAppearance), Unity (FBX, Humanoid), Unreal (FBX skeletal, Nanite, UCX), Godot/web (GLB, meshopt/Draco, WebP), USD. Scale/axes, smoothing, tangents, leaf bones, clips, batch export, post-export verification. Use whenever an asset leaves Blender.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

EL4CTEO/blender-skills4562026년 10월 20일 업데이트

EL4CTEO의 스킬 모두 보기

이 스킬의 문제 신고