Nodes/ComfyUI-BrainDead/BD Apply Color Field
ComfyUI Node

BD Apply Color Field

Apply COLOR_FIELD (voxelgrid colors) to any mesh. Use this to reapply original colors after mesh processing: 1. BD_SampleVoxelgridColors outputs COLOR_FIELD 2. Process mesh (decimate, remesh, etc.) 3. BD_ApplyColorField applies colors to processed mesh Modes: - face: 1 solid color per face, NO bleeding (works with edge marking) - sharp: Per-vertex nearest neighbor - smooth: Per-vertex k=4 weighted blend

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD Apply Color Field
  • mesh
  • color_field
  • mesh
  • status
sampling_modeface
preserve_materialtrue
default_color0.5,0.5,0.5,1.0
distance_threshold3.0
Category🧠BrainDead/Mesh

Inputs (6)

NameTypeDefaultDescription
meshTRIMESH
color_fieldCOLOR_FIELD
sampling_modeoptCOMBOfaceface=per-face solid | sharp=nearest | smooth=blended
preserve_materialoptBOOLEANtrueSave original UVs in metadata for downstream PBR reconstruction. Colors always applied natively to mesh.visual.vertex_colors.
default_coloroptSTRING0.5,0.5,0.5,1.0RGBA for vertices beyond distance threshold
distance_thresholdoptFLOAT3.00.5–20Max voxel-units distance before using default color

Outputs (2)

NameTypeDescription
meshTRIMESH
statusSTRING