Nodes/ComfyUI-BrainDead/BD OVoxel Bake
ComfyUI Node

BD OVoxel Bake

Bake PBR textures using Microsoft's o_voxel reference implementation. Takes TRELLIS2 voxelgrid directly and produces textured mesh + individual PBR maps. Uses the same pipeline as Microsoft's official TRELLIS.2 demo. Pipeline (all handled internally): 1. Multi-stage CuMesh simplification with topology repair 2. CuMesh UV unwrapping with vertex normals 3. BVH projection to original mesh for accurate sampling 4. Trilinear interpolation from sparse voxel tensor 5. UV seam inpainting 6. Proper coordinate system conversion Replaces the old BD_CuMeshSimplify → BD_UVUnwrap → manual bake pipeline.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD OVoxel Bake
  • voxelgrid
  • mesh
  • diffuse
  • normal
  • metallic
  • roughness
  • alpha
  • status
decimation_target50000
texture_size2048
remeshfalse
remesh_band1.0
remesh_project0.9
Category🧠BrainDead/Mesh

Inputs (6)

NameTypeDefaultDescription
voxelgridVOXELGRIDTRELLIS2 voxelgrid with PBR attributes (needs original_vertices/faces and attrs tensor)
decimation_targetINT500001000–2000000Target face count for mesh simplification
texture_sizeINT2048512–8192Output texture resolution (voxelgrid source is 512-1536, but normal maps benefit from higher)
remeshBOOLEANfalseEnable dual-contouring remesh (better topology, slower)
remesh_bandoptFLOAT1.00.5–3Remesh narrow band width (only used if remesh=True)
remesh_projectoptFLOAT0.90–1Project back to original surface (0=none, 1=full)

Outputs (7)

NameTypeDescription
meshTRIMESH
diffuseIMAGE
normalIMAGE
metallicIMAGE
roughnessIMAGE
alphaIMAGE
statusSTRING