π Launch Sale β 20% OFF all credit packages!
Get Credits
Detailed step-by-step ComfyUI workflow for converting images to 3D GLB models using TRELLIS 2. Includes downloadable workflow JSON, node configuration, parameter explanations, and troubleshooting.
Last updated: April 21, 2026
This tutorial walks through a complete ComfyUI workflow that takes a single image and produces a production-ready 3D GLB model with PBR textures using Microsoft's TRELLIS 2. Every node, parameter, and connection is explained β so you can reproduce it exactly or modify it for your own needs.
If you haven't installed TRELLIS 2 in ComfyUI yet, start with our TRELLIS 2 ComfyUI installation guide.
The complete pipeline consists of 5 stages:
Input Image β Image Preprocessing β TRELLIS 3D Generation β Texture Baking β Export GLB| Stage | Node | Source |
|---|---|---|
| Input | Load Image | ComfyUI built-in |
| Preprocessing | Image Resize / Center Crop | ComfyUI built-in |
| 3D Generation | TRELLIS Image to 3D | Custom node |
| Texture | TRELLIS Texture Bake | Custom node |
| Export | TRELLIS Export | Custom node |
| Preview | Preview 3D / Save Image | ComfyUI built-in |
| Resolution | Minimum GPU | VRAM | Approx. Time |
|---|---|---|---|
| 512Β³ | RTX 3060 | 8 GB | 45-60s |
| 1024Β³ | RTX 4070 | 16 GB | 90-120s |
| 1536Β³ | RTX 4090 / A100 | 24 GB | 60-90s |
TRELLIS 2 works best with well-prepared input images. Before loading into ComfyUI:
Add a Load Image node to the canvas.
Add an Image Resize node to standardize the input:
Settings:
512512lanczoscenterThis ensures consistent results regardless of your input image dimensions.
Connect: Load Image β IMAGE β Image Resize β IMAGE
This is the core generation node. Add TRELLIS Image to 3D to the canvas.
Configure these parameters:
| Parameter | Setting | Why |
|---|---|---|
| Resolution | 1024 | Good balance of quality and speed |
| Seed | -1 (random) | Use a fixed seed for reproducibility |
| Steps | 30 | Default works well; increase to 50 for fine details |
| CFG Scale | 7.5 | Controls adherence to input image |
| Shape Guidance | 0.5 | Lower = more creative, higher = more faithful |
| Low VRAM | false | Set to true if you have less than 16GB VRAM |
Connect: Image Resize β IMAGE β TRELLIS Image to 3D β image
Add TRELLIS Texture Bake to apply PBR materials to the generated mesh.
Configure these parameters:
| Parameter | Setting | Why |
|---|---|---|
| Texture Resolution | 1024 | Sharp enough for most applications |
| PBR Channels | full | Generates Base Color + Roughness + Metallic + Normal |
| Bake Method | smart | Better UV utilization |
| Denoise Strength | 0.6 | Smooths texture noise |
Connect: TRELLIS Image to 3D β MESH β TRELLIS Texture Bake β mesh
Connect: TRELLIS Image to 3D β IMAGE β TRELLIS Texture Bake β reference_image
Add TRELLIS Export to save the final model.
Configure these parameters:
| Parameter | Setting | Why |
|---|---|---|
| Format | glb | Best for web, Unity, Unreal, Three.js |
| Mesh Simplify | low | Reduces polygon count without visible quality loss |
| Embed Textures | true | Everything in one file |
| Apply Transform | true | Centers and scales model appropriately |
Connect: TRELLIS Texture Bake β MESH β TRELLIS Export β mesh
Add Save Image for a 2D preview of the textured result.
Connect: TRELLIS Texture Bake β PREVIEW β Save Image β images
[Load Image]
β
βΌ IMAGE
[Image Resize] 512x512 lanczos
β
βΌ IMAGE
[TRELLIS Image to 3D] res=1024, steps=30
β β
βΌ MESH βΌ IMAGE
β β
βΌ βΌ
[TRELLIS Texture Bake] tex=1024, PBR=full
β β
βΌ MESH βΌ PREVIEW
β β
βΌ βΌ
[TRELLIS Export] [Save Image]
format=glbAfter generating, check these aspects:
| Check | What to Look For |
|---|---|
| Shape accuracy | Does the 3D model match the input image? |
| Surface smoothness | No visible artifacts, holes, or jagged edges |
| Texture quality | Colors match the input, no stretching or seams |
| Topology | Clean mesh without non-manifold geometry |
| Scale | Model is centered and reasonably sized |
Replace the Load Image node with text input:
[CLIP Text Encode] "a futuristic helmet with neon lights"
β
βΌ CONDITIONING
[TRELLIS Text to 3D] res=1024
β
βΌ (same as above)Use multiple angles for higher quality:
[Load Image 1] [Load Image 2] [Load Image 3]
β β β
ββββββββββββββββΌβββββββββββββββ
βΌ
[TRELLIS Multi-View to 3D]
β
βΌ (same as above)Generate the input image with Stable Diffusion XL, then convert to 3D:
[SDXL Model Loader]
β
βΌ
[CLIP Text Encode] "a detailed wooden chair"
β
βΌ
[KSampler] steps=30, cfg=7
β
βΌ IMAGE
[TRELLIS Image to 3D]
β
βΌ (same as above)This is the most powerful pipeline β you can generate any 3D model from pure imagination.
fp16 precision if your GPU supports itTRELLIS nodes use specific data types. Common mismatches:
IMAGE output β must connect to image input (not CONDITIONING)MESH is a custom type β only connect between TRELLIS nodesComfyUI/models/trellis/ComfyUI/custom_nodes/Community workflows are available on RunComfy and various Patreon creator pages. You can also save your own workflow from ComfyUI: Menu β Save.
Use ComfyUI's Queue system. Load multiple images via a directory node, or create an image list and connect it to a batch-aware TRELLIS node.
Yes. ComfyUI provides an API endpoint (POST /prompt). You can script it with Python to process images in bulk.
Use the online version β no GPU needed. Upload your image and download the GLB file.
3D technology specialists focused on AI-powered 3D model generation, format conversion, and browser-based 3D rendering. We test and review 3D tools so you don't have to.

Complete TRELLIS.2-4B guide: Microsoft's 4B image-to-3D model. Compare specs and PBR quality, check VRAM needs, set up ComfyUI, or try a free online 3D demo.

Learn how to use Blender 3D modeling: navigation, G/R/S hotkeys, Extrude, modifiers, sculpting, and a structured beginner learning path.

Complete guide to using Microsoft TRELLIS 2 online for free. Covers Hugging Face Spaces, Google Colab, and other cloud platforms β no GPU or Python installation needed.
Join the community
Subscribe to our newsletter for the latest news and updates