
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 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.

Turn any photo into a 3D-printable model. Covers AI tool selection, mesh repair in Blender, STL export settings, slicer configuration, and troubleshooting common print failures. Works with TRELLIS 2, Meshy AI, and Tripo AI.

How to generate production-quality PBR textures (Base Color, Roughness, Metallic, Normal maps) with TRELLIS 2 in ComfyUI. Covers texture baking nodes, parameter tuning, and export for Unity/Unreal.
Join the community
Subscribe to our newsletter for the latest news and updates