This extension integrates Tripo into ComfyUI, allowing users to generate 3D models from text prompts or images directly within the ComfyUI interface.
- Generate 3D models from text prompts using the Tripo API
- Generate 3D models from images using the Tripo API
- View generated 3D models directly in ComfyUI using the TripoGLB Viewer node
- Clone or download this repository into your
ComfyUI/custom_nodes/
directory. - Install the required dependencies by running
pip install -r requirements.txt
. - (Optional) Set your Tripo API key as an environment variable named
TRIPO_API_KEY
in your env variables.
Usually it will take 10~20s to generate a model.
This node allows you to generate a 3D model from a text prompt using the Tripo API.
- Connect the node to your workflow.
- Enter your text prompt in the "prompt" field.
- The node will output a GLB file containing the generated 3D model.
This node allows you to generate a 3D model from an input image using the Tripo API.
- Connect an image output to the "image" input of the node.
- The node will output a GLB file containing the generated 3D model.
This node allows you to view the generated 3D models directly in ComfyUI.
- Connect the output of either the Text to Mesh or Image to Mesh node to the "mesh" input of the TripoGLB Viewer node.
- The 3D model will be displayed in the node's interface.
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks for awesome 3d pack visualization from ComfyUI-3D-Pack