Nodes/ComfyUI-BrainDead/BD OVoxel Texture Bake
ComfyUI Node

BD OVoxel Texture Bake

Bake PBR textures onto a pre-processed mesh using o_voxel. Takes YOUR mesh (already decimated + UV unwrapped) and bakes textures from the TRELLIS2 voxelgrid using BVH projection + trilinear interpolation. Pipeline: 1. Build BVH from original high-res mesh (in voxelgrid) 2. Rasterize YOUR mesh in UV space (nvdiffrast) 3. Project texel positions onto original mesh surface (BVH) 4. Trilinear sample voxel attributes at projected positions 5. Inpaint UV seams 6. Output individual PBR texture maps Use after: BD_CuMeshSimplify → BD_UVUnwrap → THIS NODE

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD OVoxel Texture Bake
  • mesh
  • voxelgrid
  • mesh
  • diffuse
  • normal
  • metallic
  • roughness
  • alpha
  • status
texture_size2048
inpaint_radius3
Category🧠BrainDead/Mesh

Inputs (4)

NameTypeDefaultDescription
meshTRIMESHPre-processed mesh WITH UVs (from your own simplify + unwrap pipeline)
voxelgridVOXELGRIDTRELLIS2 voxelgrid with PBR attributes and original mesh data
texture_sizeINT2048512–8192Output texture resolution (voxelgrid source is 512-1536, but normal maps benefit from higher)
inpaint_radiusINT31–10Inpainting radius for UV seam filling

Outputs (7)

NameTypeDescription
meshTRIMESH
diffuseIMAGE
normalIMAGE
metallicIMAGE
roughnessIMAGE
alphaIMAGE
statusSTRING