Mesh Bake Maps(MeshBakeMapsStage)
Mesh Bake Maps (class MeshBakeMapsStage) transfers detail from a high-poly source mesh onto a UV-unwrapped low-poly mesh by baking texture maps.
Mesh Bake Maps Stage
Description
Mesh Bake Maps (class MeshBakeMapsStage) transfers detail from a high-poly source mesh onto a UV-unwrapped low-poly mesh by baking texture maps. It can produce a tangent-space normal map and an ambient-occlusion (AO) map, and returns the baked model together with the maps as an image. The node lives in the ComfyTV/3D category and is typically used after decimating a dense mesh, where the low-poly version has lost surface detail that should be recovered at render time through normal mapping and occlusion.
Both map types are optional. Enable only the maps you need: bake_normal controls the normal pass, and bake_ao controls the AO pass. Resolution and sampling settings apply to the enabled passes.
Inputs
Required Inputs
| Input | Type | Default | Range / Step | Description |
|---|---|---|---|---|
bake_normal | BOOLEAN | true | Bake a tangent-space normal map (glTF/OpenGL +Y) capturing high-poly detail lost to decimation. | |
bake_ao | BOOLEAN | true | Bake an ambient-occlusion map (white = open, dark = crevices), packed into the glTF ORM/occlusionTexture. | |
resolution | INT | 1024 | 256 to 4096, step 256 | Baked map resolution. Applies to the generated maps. |
cage_distance | FLOAT | 0.05 | 0.001 to 0.5, step 0.001 | Normal bake surface search band as a fraction of the bounding-box diagonal. Raise for missing patches; lower if it grabs across gaps. |
ao_samples | INT | 64 | 4 to 512, step 4 | AO rays per texel. More gives a smoother result and is slower. |
ao_strength | FLOAT | 1.0 | 0 to 2, step 0.05 | Scales the occlusion. Values greater than 1 darken the AO; values below 1 lighten it. |
cage_distance only affects the normal bake. ao_samples and ao_strength only affect the AO bake. Increase resolution when the maps need to resolve fine details or when the low-poly has a large UV footprint; keep it lower for faster bakes and smaller outputs.
Optional Inputs
| Input | Type | Description |
|---|---|---|
model | COMFYTV_MODEL | UV-unwrapped low-poly mesh to bake onto. This is the mesh that receives the maps. |
high_poly | COMFYTV_MODEL | High-poly source of the detail. This should be the mesh the low-poly was decimated from. |
For a useful bake, connect both model and high_poly. The model must already have a valid UV layout, since the baked maps are written in that UV space. The high_poly supplies the surface information that the low-poly no longer carries.
Outputs
| Output | Type | Description |
|---|---|---|
| Model | COMFYTV_MODEL | The low-poly model with the baked maps applied or associated, ready for downstream use. |
| Image | COMFYTV_IMAGE | The baked map result as an image, useful for previewing, inspecting, or further processing the bake. |
Usage Notes
- Start with the defaults (
resolution1024,cage_distance0.05,ao_samples64,ao_strength1.0) and adjust only after inspecting the result. - If the normal bake shows missing or patchy detail, increase
cage_distanceso the surface search band reaches the high-poly detail. If the bake picks up detail from nearby surfaces across gaps or seams, decreasecage_distance. - The normal map follows the glTF/OpenGL +Y convention, so green-channel orientation is already set up for glTF-style pipelines.
- AO is packed into the glTF ORM/occlusionTexture layout, where white indicates open areas and dark indicates crevices. Use
ao_strengthto push the contrast up or down without rebaking. - Raise
ao_samplesto reduce AO noise on curved or concave surfaces; lower it for quicker preview bakes. - Disabling a map skips that pass entirely, which saves time when only one map is needed.
- The
resolutionrange is limited to 256 through 4096 in steps of 256, so values snap to that grid.
Comments
Sign in with GitHub to join the discussion.