ComfyTV/3Dgenerated

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

model
high_poly
model
maps
bake_normal
bake_ao
resolution
1024
cage_distance
0.050
ao_samples
64
ao_strength
1.00
ComfyTV

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

InputTypeDefaultRange / StepDescription
bake_normalBOOLEANtrueBake a tangent-space normal map (glTF/OpenGL +Y) capturing high-poly detail lost to decimation.
bake_aoBOOLEANtrueBake an ambient-occlusion map (white = open, dark = crevices), packed into the glTF ORM/occlusionTexture.
resolutionINT1024256 to 4096, step 256Baked map resolution. Applies to the generated maps.
cage_distanceFLOAT0.050.001 to 0.5, step 0.001Normal bake surface search band as a fraction of the bounding-box diagonal. Raise for missing patches; lower if it grabs across gaps.
ao_samplesINT644 to 512, step 4AO rays per texel. More gives a smoother result and is slower.
ao_strengthFLOAT1.00 to 2, step 0.05Scales 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

InputTypeDescription
modelCOMFYTV_MODELUV-unwrapped low-poly mesh to bake onto. This is the mesh that receives the maps.
high_polyCOMFYTV_MODELHigh-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

OutputTypeDescription
ModelCOMFYTV_MODELThe low-poly model with the baked maps applied or associated, ready for downstream use.
ImageCOMFYTV_IMAGEThe baked map result as an image, useful for previewing, inspecting, or further processing the bake.

Usage Notes

  • Start with the defaults (resolution 1024, cage_distance 0.05, ao_samples 64, ao_strength 1.0) and adjust only after inspecting the result.
  • If the normal bake shows missing or patchy detail, increase cage_distance so the surface search band reaches the high-poly detail. If the bake picks up detail from nearby surfaces across gaps or seams, decrease cage_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_strength to push the contrast up or down without rebaking.
  • Raise ao_samples to 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 resolution range 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.

Loading comments…