visualbruno/ComfyUI-Trellis2
ComfyUI Wrapper for Microsoft Trellis.2 - Native and Compact Structured Latents for 3D Generation
📦 What is ComfyUI‑Trellis2?
A community‑maintained custom node pack that brings Microsoft’s TRELLIS.2 3‑D generation pipeline into ComfyUI, the visual node‑based UI for diffusion models. It lets you build end‑to‑end workflows that turn one or many images into textured 3‑D meshes, multi‑view renders, and voxel‑based reconstructions – all inside the familiar ComfyUI canvas.
✨ Key capabilities (as listed in the changelog)
- Multi‑view generation – nodes such as Sparse MultiView Generator, ImageCond MultiView Generator, Shape Cascade MultiView Generator, etc., create consistent geometry from several viewpoints.
- Mesh texturing & refinement – Mesh Texturing Multi‑View, Mesh Texturing Pixal3D MultiView, and Mesh With Voxel Multi‑View Generator add UV‑mapped textures, support Pixal3D‑T models, and allow voxel‑based detail.
- Geometry processing – nodes for remeshing, smoothing (PyMeshlab, Trimesh), hole filling (Meshlib, CuMesh), vertex welding, normal smoothing, and simplification.
- Rendering – Render MultiView (Nvdiffrast) and Preview 3D let you visualise the result directly in ComfyUI.
- Advanced samplers – experimental Heun, RK4, RK5 samplers for diffusion steps.
- Support for external models – requires Facebook’s DINO‑v3 vision model and optionally TencentARC/Pixal3D‑T (needs the
nattenpackage). - Platform‑specific wheels – pre‑compiled binaries for CuMesh, nvdiffrast, nvdiffrec_render, FlexGEMM, and o_voxel for Torch 2.7/2.8 on Windows.
🛠️ Installation (quick‑start)
- Prerequisites
- Install ComfyUI (standard or portable).
- Download the DINO‑v3 model from HuggingFace and place it under
ComfyUI/models/facebook/dinov3-vitl16-pretrain-lvd1689m. - (Optional) For Pixal3D‑T support, install the
nattenpackage from its GitHub repo.
- Install the provided wheels – choose the folder matching your Torch version (2.7.0 or 2.8.0) and run the
pip install …/*.whlcommands shown in the README. There are separate commands for a normal Python install and for the ComfyUI portable bundle. - Install Python dependencies
pip install -r ComfyUI/custom_nodes/ComfyUI-Trellis2/requirements.txt - Custom builds (optional) – if you want the author’s patched versions of
o_voxel,CuMesh, orFlexGEMM, clone the linked repos and install them. - Restart ComfyUI – the new Trellis2 nodes will appear under a Trellis2 category.
🚀 How to use it
- Add a “PreProcess Image” node (optionally with
remove_backgroundviarembg). - Feed the image(s) into a Multi‑View Generator – pick the style you need (Sparse, ImageCond, Shape, etc.).
- Optionally run a “Mesh With Voxel … Generator” to create a voxel representation, then convert to mesh with the Voxel to Mesh node.
- Refine geometry using Smooth Mesh, Fill Holes With Meshlib, Weld Vertices, or Simplify Trimesh.
- Texture the mesh with Mesh Texturing Multi‑View (or the Pixal3D‑specific node for higher‑quality texture maps).
- Render the result with Render MultiView (Nvdiffrast) or view it live via Preview 3D.
- Export using the Export Mesh node – the output is compatible with the preview node and can be saved as standard 3‑D formats.
The repository includes an example_workflows folder with ready‑made ComfyUI graphs for common tasks such as Projection_Blender_Qwen_XViews, Projection MultiView Texturing, and Pixal3D pipelines.
📚 Where to look for help
- Discord community (linked in the acknowledgements) – active users share workflow tips and bug fixes.
- “Blackwell Fix” – a community patch for a known issue, referenced in the README.
- The author’s forks of Trellis.2, CuMesh, and FlexGEMM contain additional documentation and the latest bug‑fixes.
🔗 Related projects
- Microsoft/TRELLIS.2 – the original research code that performs multi‑view diffusion‑based 3‑D generation.
- ComfyUI – the node‑based UI that this wrapper plugs into.
- Pixal3D – a high‑quality 3‑D model dataset used by some of the nodes.
ComfyUI‑Trellis2 is essentially a bridge that makes Microsoft’s cutting‑edge 3‑D diffusion pipeline accessible to artists and developers who prefer a visual workflow. It bundles the necessary compiled extensions, provides a rich set of geometry‑processing nodes, and ships example graphs to get you generating textured meshes in minutes.
Related
- Project
- Project
- Project
- Project
- Project