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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| voxelgrid | VOXELGRID | TRELLIS2 voxelgrid with PBR attributes (needs original_vertices/faces and attrs tensor) | |
| decimation_target | INT | 500001000–2000000 | Target face count for mesh simplification |
| texture_size | INT | 2048512–8192 | Output texture resolution (voxelgrid source is 512-1536, but normal maps benefit from higher) |
| remesh | BOOLEAN | false | Enable dual-contouring remesh (better topology, slower) |
| remesh_bandopt | FLOAT | 1.00.5–3 | Remesh narrow band width (only used if remesh=True) |
| remesh_projectopt | FLOAT | 0.90–1 | Project back to original surface (0=none, 1=full) |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| mesh | TRIMESH | — |
| diffuse | IMAGE | — |
| normal | IMAGE | — |
| metallic | IMAGE | — |
| roughness | IMAGE | — |
| alpha | IMAGE | — |
| status | STRING | — |