Nodes/ComfyUI-BrainDead/BD Transfer Vertex Colors
ComfyUI Node

BD Transfer Vertex Colors

Transfer vertex colors from source mesh to target mesh using spatial lookup. Transfer modes: - face: Per-face colors with NO bleeding - splits vertices so each face has unique verts. RECOMMENDED for stylized/low-poly looks. Triples vertex count but ensures clean colors. - face_center: Per-face lookup but assigns to shared vertices (may bleed at edges) - vertex_nearest: Per-vertex k=1 nearest neighbor (may bleed) - barycentric: Smooth interpolation for high-poly blended looks Typical workflow: 1. Sample colors to high-poly mesh (BD_SampleVoxelgridColors) 2. Decimate mesh (BD_SmartDecimate) 3. Transfer colors back (BD_TransferVertexColors) with face mode for clean edges

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD Transfer Vertex Colors
  • source_mesh
  • target_mesh
  • mesh
  • status
transfer_modeface
default_color1.0,0.0,1.0,1.0
Category🧠BrainDead/Mesh

Inputs (4)

NameTypeDefaultDescription
source_meshTRIMESHHigh-poly mesh with vertex colors
target_meshTRIMESHDecimated mesh to receive colors
transfer_modeoptCOMBOfaceface=NO bleed (splits verts), face_center=sharp, vertex_nearest=per-vertex, barycentric=smooth
default_coloroptSTRING1.0,0.0,1.0,1.0Fallback color (magenta) for missing coverage

Outputs (2)

NameTypeDescription
meshTRIMESH
statusSTRING