Added detailed instructions for generating a mesh using Trellis 2 in ComfyUI, including workflow setup, parameter configuration, and image processing steps.
3.8 KiB
🔌 ComfyUI - Generate a Mesh with Trellis 2
Create the workflow in ComfyUI
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)"
Import the workflow from the Assets page
-
Unselect all input parameters
-
Choose the type "Mesh" for the output parameter
-
Find the input "Trellis 2 Load Image" and set the type as "Image" and check it. Rename the input as "Source Image"
-
Find the input "seed" and check it. Rename it as "Seed"
-
Find the input "texture_size", check it and rename it as "Texture Size"
-
Find the input "target_face_num", check it and rename it "Target Face Number"
-
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
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
Run the workflow
Now you have your transparent picture, add a "Mesh" node and connect your transparent picture to the "Mesh" node
Run your Trellis 2 Workflow and wait for the result
You will find all your generated images and meshes in the Assets page