ComfyUI Node
BD Sample Voxelgrid PBR
Sample full PBR (color, metallic, roughness) from TRELLIS2 voxelgrid. Modes: - face (CORNER): 1 solid color per face, NO bleeding. Works with BD_BlenderEdgeMarking. Splits vertices. - sharp (POINT/k=1): Per-vertex nearest neighbor. Colors shared at edges - edge marking won't detect boundaries. - smooth (POINT/k=4): Per-vertex blended. Smooth gradients - edge marking won't detect boundaries.
BD Sample Voxelgrid PBR
- mesh
- voxelgrid
- mesh
- metallic_json
- roughness_json
- status
◄sampling_modeface►
◄default_color0.5,0.5,0.5,1.0►
◄default_metallic0.00►
◄default_roughness0.50►
◄distance_threshold3.0►
Category🧠BrainDead/Mesh
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| mesh | TRIMESH | — | |
| voxelgrid | VOXELGRID | — | |
| sampling_modeopt | COMBO | face | face=CORNER domain (edge marking works) | sharp=POINT k=1 | smooth=POINT k=4 blended |
| default_coloropt | STRING | 0.5,0.5,0.5,1.0 | — |
| default_metallicopt | FLOAT | 0.000–1 | — |
| default_roughnessopt | FLOAT | 0.500–1 | — |
| distance_thresholdopt | FLOAT | 3.01–10 | Max voxels distance before using default values |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mesh | TRIMESH | — |
| metallic_json | STRING | — |
| roughness_json | STRING | — |
| status | STRING | — |