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
BD OVoxel Texture Bake
- mesh
- voxelgrid
- mesh
- diffuse
- normal
- metallic
- roughness
- alpha
- status
◄texture_size2048►
◄inpaint_radius3►
Category🧠BrainDead/Mesh
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| mesh | TRIMESH | Pre-processed mesh WITH UVs (from your own simplify + unwrap pipeline) | |
| voxelgrid | VOXELGRID | TRELLIS2 voxelgrid with PBR attributes and original mesh data | |
| texture_size | INT | 2048512–8192 | Output texture resolution (voxelgrid source is 512-1536, but normal maps benefit from higher) |
| inpaint_radius | INT | 31–10 | Inpainting radius for UV seam filling |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| mesh | TRIMESH | — |
| diffuse | IMAGE | — |
| normal | IMAGE | — |
| metallic | IMAGE | — |
| roughness | IMAGE | — |
| alpha | IMAGE | — |
| status | STRING | — |