3dgenstudio-mirror/docs/ComfyUI_Mesh_Generation.md
Bruno Fargnoli dde06adc01
Document mesh generation workflow with Trellis 2
Added detailed instructions for generating a mesh using Trellis 2 in ComfyUI, including workflow setup, parameter configuration, and image processing steps.
2026-04-19 12:37:43 +02:00

3.8 KiB

🔌 ComfyUI - Generate a Mesh with Trellis 2

Create the workflow in ComfyUI

{9C094CAE-3C08-46FB-93B4-6AE52BB8D04D}

Don't forget to put the "Preview 3D", because it will be used as the output in 3D Gen Studio

Export the workflow using "Export (API)" {A3775E1F-AA8F-4E18-9A38-4E0B54331DE2}

Import the workflow from the Assets page

{EBEC25D9-3146-4951-8C29-3658EF27AD66}
  1. Unselect all input parameters

  2. Choose the type "Mesh" for the output parameter {70B73A4C-0A4C-4083-8039-87AAB4E51156}

  3. Find the input "Trellis 2 Load Image" and set the type as "Image" and check it. Rename the input as "Source Image" {5036FAAE-C8EB-4D1D-9BBC-029061603688}

  4. Find the input "seed" and check it. Rename it as "Seed" {775B26D8-1933-4232-B7E4-9861E83A0AAA}

  5. Find the input "texture_size", check it and rename it as "Texture Size" {753F8481-F8FB-4567-B8C2-274B1F930FE8}

  6. Find the input "target_face_num", check it and rename it "Target Face Number" {F959390D-F842-419E-922A-4FD56BE1C6AE}

  7. You can check any other input parameter that you want to change in the workflow. Save your workflow with the button "Save Workflow" that is at the bottom of the page

Generate the mesh from the Graph Worflow

{CF882F11-9610-47A8-BAC6-415CBA16C870}

Trellis 2 works only with transparent image, so you can use another Image node to remove the background using another ComfyUI workflow for that

Create a workflow that will remove the background first and import it in 3D Gen Studio {7646ED94-062F-4457-8FFD-796D517471DE}

Run the workflow {75E0F255-9A5C-418A-A49C-9C4BC95F89D0}

Now you have your transparent picture, add a "Mesh" node and connect your transparent picture to the "Mesh" node {7FEC2AEC-7730-4566-8791-3AC124CAE554}

Run your Trellis 2 Workflow and wait for the result {252530AA-456B-4EF1-BB7E-90C4C43E0FCD} {C59BF821-84A4-4421-AE50-9DB1F89D27E9} {0C337F8A-2DC6-4323-AC7D-7212E2E11743}

You will find all your generated images and meshes in the Assets page