{ "id": "440427ce-0c6a-4462-af51-639ed2f16dec", "revision": 0, "last_node_id": 267, "last_link_id": 516, "nodes": [ { "id": 213, "type": "Trellis2ImageCondGenerator", "pos": [ -866.8570558744583, 190.32905390845917 ], "size": [ 308.0748046875, 98 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 395 }, { "name": "image", "type": "IMAGE", "link": 394 } ], "outputs": [ { "name": "cond_512", "type": "IMAGE_COND", "links": [ 383, 385 ] }, { "name": "cond_1024", "type": "IMAGE_COND", "links": [ 388 ] }, { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 382 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2ImageCondGenerator" }, "widgets_values": [ 1 ] }, { "id": 215, "type": "Trellis2ShapeGenerator", "pos": [ -853.5996326493168, 908.6760719171235 ], "size": [ 335.24609375, 362 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 384 }, { "name": "image_cond", "type": "IMAGE_COND", "link": 385 }, { "name": "coords", "type": "COORDS", "link": 386 } ], "outputs": [ { "name": "shape_slat", "type": "SHAPE_SLAT", "links": [ 389 ] }, { "name": "resolution", "type": "INT", "links": [ 390 ] }, { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 387 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2ShapeGenerator" }, "widgets_values": [ 512, 12, 7.5, 0.01, 3, "heun", 0.1, 1, false, 0, 9, 1 ] }, { "id": 209, "type": "PrimitiveInt", "pos": [ -1894.4679156456455, 206.04864468302688 ], "size": [ 270, 82 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 454, 487 ] } ], "title": "Target Face Number", "properties": { "cnr_id": "comfy-core", "ver": "0.16.4", "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 500000, "fixed" ] }, { "id": 39, "type": "Trellis2LoadModel", "pos": [ -1225.323779258147, 97.34726822503463 ], "size": [ 280.05208333333337, 226 ], "flags": { "collapsed": false }, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 395 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "c5d66aa46bf1bbf903fd4fe9ff086ac774bb7e03", "Node name for S&R": "Trellis2LoadModel", "widget_ue_connectable": {} }, "widgets_values": [ "microsoft/TRELLIS.2-4B", "flash_attn", "cuda", true, false, "flex_gemm", "flash_attn", false ] }, { "id": 194, "type": "Trellis2PreProcessImage", "pos": [ -1212.844687114136, 417.26056106890996 ], "size": [ 281.7837890625, 106 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 344 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 394, 500 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "7ce26deae425d114f3deb78e802d6196e5987a4a", "Node name for S&R": "Trellis2PreProcessImage" }, "widgets_values": [ 10, false, 1024 ] }, { "id": 216, "type": "Trellis2ShapeCascadeGenerator", "pos": [ -388.8621509820503, 105.25982170608268 ], "size": [ 335.9791015625, 454 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 387 }, { "name": "image_cond", "type": "IMAGE_COND", "link": 388 }, { "name": "shape_slat", "type": "SHAPE_SLAT", "link": 389 }, { "name": "from_resolution", "type": "INT", "widget": { "name": "from_resolution" }, "link": 390 }, { "name": "sparse_structure_resolution", "type": "INT", "widget": { "name": "sparse_structure_resolution" }, "link": 391 } ], "outputs": [ { "name": "shape_slat", "type": "SHAPE_SLAT", "links": [ 474 ] }, { "name": "resolution", "type": "INT", "links": [ 475 ] }, { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 504 ] }, { "name": "num_tokens", "type": "INT", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2ShapeCascadeGenerator" }, "widgets_values": [ 0, 1024, 0, 999999, 12, 7.5, 0.01, 3, "heun", 0.1, 1, false, 0, 1, 1 ] }, { "id": 217, "type": "Trellis2DecodeLatents", "pos": [ -381.6781543041809, 595.4273272032492 ], "size": [ 294.9151446050946, 122 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 504 }, { "name": "shape_slat", "type": "SHAPE_SLAT", "link": 474 }, { "name": "texture_slat", "shape": 7, "type": "TEXTURE_SLAT", "link": null }, { "name": "resolution", "type": "INT", "widget": { "name": "resolution" }, "link": 475 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 397 ] }, { "name": "bvh", "type": "BVH", "links": [] }, { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 499 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2DecodeLatents" }, "widgets_values": [ 0, true ] }, { "id": 193, "type": "Trellis2FillHolesWithCuMesh", "pos": [ -386.5517617635026, 770.0723356030239 ], "size": [ 312.4361328125, 58 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 397 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 356 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "dc66f263e832b103a81a021bf6cd53eec8ff28af", "Node name for S&R": "Trellis2FillHolesWithCuMesh" }, "widgets_values": [ 1 ] }, { "id": 161, "type": "Trellis2ReconstructMeshWithQuad", "pos": [ -393.7487221813591, 882.6164010318996 ], "size": [ 331.5878996659427, 142.11360851901668 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 356 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 398 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "d4d66cfc9f1ce5b1c3b9a2e504ee4b24ffad48a5", "Node name for S&R": "Trellis2ReconstructMeshWithQuad", "widget_ue_connectable": {} }, "widgets_values": [ 1, 1024, true, true ] }, { "id": 218, "type": "Trellis2SimplifyMesh", "pos": [ -365.2225978531331, 1072.2220074107754 ], "size": [ 270, 82 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 398 }, { "name": "target_face_num", "type": "INT", "widget": { "name": "target_face_num" }, "link": 454 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 463 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2SimplifyMesh" }, "widgets_values": [ 500000, "Cumesh" ] }, { "id": 250, "type": "Trellis2FillHolesNicelyWithMeshlib", "pos": [ -389.8792444756772, 1203.8970502436746 ], "size": [ 328.5106969603829, 46 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 463 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 488 ] }, { "name": "holes_filled", "type": "INT", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "9d1f80ec9b4d5c4b966e7595ee99e01a1d0c9f19", "Node name for S&R": "Trellis2FillHolesNicelyWithMeshlib" }, "widgets_values": [] }, { "id": 257, "type": "Trellis2SimplifyMesh", "pos": [ 56.5550543059872, 212.00415688031882 ], "size": [ 270, 82 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 488 }, { "name": "target_face_num", "type": "INT", "widget": { "name": "target_face_num" }, "link": 487 } ], "outputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "links": [ 505 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2SimplifyMesh" }, "widgets_values": [ 500000, "Cumesh" ] }, { "id": 263, "type": "Preview3D", "pos": [ 961.2488327957072, 201.14482369491293 ], "size": [ 817.5444864747835, 868.3669388950859 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "camera_info", "shape": 7, "type": "LOAD3D_CAMERA", "link": null }, { "name": "bg_image", "shape": 7, "type": "IMAGE", "link": null }, { "name": "model_file", "type": "STRING,FILE_3D_GLB,FILE_3D_GLTF,FILE_3D_FBX,FILE_3D_OBJ,FILE_3D_STL,FILE_3D_USDZ,FILE_3D", "widget": { "name": "model_file" }, "link": 503 } ], "outputs": [], "properties": { "cnr_id": "comfy-core", "ver": "0.16.4", "Node name for S&R": "Preview3D", "Last Time Model File": "C:/Git/ComfyUI/output/ArmoredWarrior_Textured_00002_.glb", "Resource Folder": "Git/ComfyUI/output", "Scene Config": { "showGrid": true, "backgroundColor": "#282828", "backgroundImage": "", "backgroundRenderMode": "tiled" }, "Camera Config": { "cameraType": "perspective", "fov": 35, "state": { "position": { "x": -0.2289360668480704, "y": 4.092624766564239, "z": 9.373875418952048 }, "target": { "x": 0, "y": 2.5, "z": 0 }, "zoom": 1, "cameraType": "perspective" } }, "Light Config": { "intensity": 3 }, "Model Config": { "upDirection": "original", "materialMode": "original", "showSkeleton": false } }, "widgets_values": [ "C:/Git/ComfyUI/output/ArmoredWarrior_Textured_00002_.glb", "" ] }, { "id": 260, "type": "PrimitiveInt", "pos": [ -1888.7341838217667, 348.47508641032636 ], "size": [ 270, 82 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "INT", "type": "INT", "links": [ 508 ] } ], "title": "Texture Size", "properties": { "cnr_id": "comfy-core", "ver": "0.19.3", "Node name for S&R": "PrimitiveInt" }, "widgets_values": [ 2048, "fixed" ] }, { "id": 265, "type": "StringConcatenate", "pos": [ 113.98800759066256, 518.2160148927148 ], "size": [ 400, 200 ], "flags": { "collapsed": true }, "order": 6, "mode": 0, "inputs": [ { "name": "string_a", "type": "STRING", "widget": { "name": "string_a" }, "link": 510 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 511 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.19.3", "Node name for S&R": "StringConcatenate" }, "widgets_values": [ "", "_WhiteMesh", "" ] }, { "id": 262, "type": "Trellis2ExportMesh", "pos": [ 499.83418557062214, 987.199724204192 ], "size": [ 270, 102 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "trimesh", "type": "TRIMESH", "link": 502 }, { "name": "filename_prefix", "type": "STRING", "widget": { "name": "filename_prefix" }, "link": 513 } ], "outputs": [ { "name": "glb_path", "type": "STRING", "links": [ 503 ] }, { "name": "relative_path", "type": "STRING", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2ExportMesh" }, "widgets_values": [ "Test", "glb" ] }, { "id": 266, "type": "StringConcatenate", "pos": [ 552.9141906102749, 906.973885862458 ], "size": [ 400, 200 ], "flags": { "collapsed": true }, "order": 7, "mode": 0, "inputs": [ { "name": "string_a", "type": "STRING", "widget": { "name": "string_a" }, "link": 512 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 513 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.19.3", "Node name for S&R": "StringConcatenate" }, "widgets_values": [ "", "_Textured", "" ] }, { "id": 264, "type": "Trellis2MeshWithVoxelToTrimesh", "pos": [ 21.666286911356153, 384.3643062387655 ], "size": [ 349.41171875, 58 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "mesh", "type": "MESHWITHVOXEL", "link": 505 } ], "outputs": [ { "name": "trimesh", "type": "TRIMESH", "links": [ 506, 514 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "9d1f80ec9b4d5c4b966e7595ee99e01a1d0c9f19", "Node name for S&R": "Trellis2MeshWithVoxelToTrimesh" }, "widgets_values": [ "90 degrees" ] }, { "id": 267, "type": "Trellis2Continue", "pos": [ 124.02464832603272, 789.5131517408108 ], "size": [ 161.33359375, 46 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "input_1", "type": "*", "link": 514 }, { "name": "input_2", "type": "*", "link": 515 } ], "outputs": [ { "name": "output_1", "type": "*", "links": [ 516 ] }, { "name": "output_2", "type": "*", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "9d1f80ec9b4d5c4b966e7595ee99e01a1d0c9f19", "Node name for S&R": "Trellis2Continue" }, "widgets_values": [] }, { "id": 203, "type": "Trellis2ExportMesh", "pos": [ 62.887619838706954, 606.5545634795856 ], "size": [ 270, 102 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "name": "trimesh", "type": "TRIMESH", "link": 506 }, { "name": "filename_prefix", "type": "STRING", "widget": { "name": "filename_prefix" }, "link": 511 } ], "outputs": [ { "name": "glb_path", "type": "STRING", "links": [ 515 ] }, { "name": "relative_path", "type": "STRING", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2ExportMesh" }, "widgets_values": [ "LaserPistol", "glb" ] }, { "id": 261, "type": "Trellis2MeshTexturing", "pos": [ 456.0176857638889, 178.2178925976784 ], "size": [ 419.15234375, 602 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 499 }, { "name": "image", "type": "IMAGE", "link": 500 }, { "name": "trimesh", "type": "TRIMESH", "link": 516 }, { "name": "texture_size", "type": "INT", "widget": { "name": "texture_size" }, "link": 508 } ], "outputs": [ { "name": "trimesh", "type": "TRIMESH", "links": [ 502 ] }, { "name": "base_color_texture", "type": "IMAGE", "links": null }, { "name": "metallic_roughness_texture", "type": "IMAGE", "links": null } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "9d1f80ec9b4d5c4b966e7595ee99e01a1d0c9f19", "Node name for S&R": "Trellis2MeshTexturing" }, "widgets_values": [ 12345, "fixed", 12, 5, 0.05, 3, 1024, 2048, "OPAQUE", false, 0, 0.99, 4, false, false, 60, "heun", "telea", false, 0, 4, 1 ] }, { "id": 6, "type": "Trellis2LoadImageWithTransparency", "pos": [ -1938.3986918443481, 498.59522715431825 ], "size": [ 631.9393495485403, 765.9737728955563 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "image", "type": "IMAGE", "links": null }, { "name": "mask", "type": "MASK", "links": null }, { "name": "image_with_alpha", "type": "IMAGE", "links": [ 344 ] } ], "title": "Image with Transparency", "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "e7f9b30df7a09bcedf1c955e176754c73f983254", "Node name for S&R": "Trellis2LoadImageWithTransparency", "widget_ue_connectable": {} }, "widgets_values": [ "Image_1024_00065_.png", "image" ] }, { "id": 219, "type": "PrimitiveString", "pos": [ -1899.757197854388, 106.80098905509897 ], "size": [ 270, 58 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 510, 512 ] } ], "title": "Name", "properties": { "cnr_id": "comfy-core", "ver": "0.16.4", "Node name for S&R": "PrimitiveString" }, "widgets_values": [ "AnimePistol" ] }, { "id": 214, "type": "Trellis2SparseGenerator", "pos": [ -872.1942409198456, 344.02647643410654 ], "size": [ 395.65625, 506 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "pipeline", "type": "TRELLIS2PIPELINE", "link": 382 }, { "name": "image_cond", "type": "IMAGE_COND", "link": 383 } ], "outputs": [ { "name": "coords", "type": "COORDS", "links": [ 386 ] }, { "name": "sparse_structure_resolution", "type": "INT", "links": [ 391 ] }, { "name": "pipeline", "type": "TRELLIS2PIPELINE", "links": [ 384 ] } ], "properties": { "aux_id": "visualbruno/ComfyUI-Trellis2", "ver": "ef2286b47ce0ef0e681dffe0209aadd96de50f72", "Node name for S&R": "Trellis2SparseGenerator" }, "widgets_values": [ 12345, "fixed", 12, 7.5, 0.01, 5, "heun", 32, 0.1, 1, true, 1, false, 1, 8, "flood_fill", 1, true ] } ], "links": [ [ 344, 6, 2, 194, 0, "IMAGE" ], [ 356, 193, 0, 161, 0, "MESHWITHVOXEL" ], [ 382, 213, 2, 214, 0, "TRELLIS2PIPELINE" ], [ 383, 213, 0, 214, 1, "IMAGE_COND" ], [ 384, 214, 2, 215, 0, "TRELLIS2PIPELINE" ], [ 385, 213, 0, 215, 1, "IMAGE_COND" ], [ 386, 214, 0, 215, 2, "COORDS" ], [ 387, 215, 2, 216, 0, "TRELLIS2PIPELINE" ], [ 388, 213, 1, 216, 1, "IMAGE_COND" ], [ 389, 215, 0, 216, 2, "SHAPE_SLAT" ], [ 390, 215, 1, 216, 3, "INT" ], [ 391, 214, 1, 216, 4, "INT" ], [ 394, 194, 0, 213, 1, "IMAGE" ], [ 395, 39, 0, 213, 0, "TRELLIS2PIPELINE" ], [ 397, 217, 0, 193, 0, "MESHWITHVOXEL" ], [ 398, 161, 0, 218, 0, "MESHWITHVOXEL" ], [ 454, 209, 0, 218, 1, "INT" ], [ 463, 218, 0, 250, 0, "MESHWITHVOXEL" ], [ 474, 216, 0, 217, 1, "SHAPE_SLAT" ], [ 475, 216, 1, 217, 3, "INT" ], [ 487, 209, 0, 257, 1, "INT" ], [ 488, 250, 0, 257, 0, "MESHWITHVOXEL" ], [ 499, 217, 2, 261, 0, "TRELLIS2PIPELINE" ], [ 500, 194, 0, 261, 1, "IMAGE" ], [ 502, 261, 0, 262, 0, "TRIMESH" ], [ 503, 262, 0, 263, 2, "STRING" ], [ 504, 216, 2, 217, 0, "TRELLIS2PIPELINE" ], [ 505, 257, 0, 264, 0, "MESHWITHVOXEL" ], [ 506, 264, 0, 203, 0, "TRIMESH" ], [ 508, 260, 0, 261, 3, "INT" ], [ 510, 219, 0, 265, 0, "STRING" ], [ 511, 265, 0, 203, 1, "STRING" ], [ 512, 219, 0, 266, 0, "STRING" ], [ 513, 266, 0, 262, 1, "STRING" ], [ 514, 264, 0, 267, 0, "TRIMESH" ], [ 515, 203, 0, 267, 1, "STRING" ], [ 516, 267, 0, 261, 2, "TRIMESH" ] ], "groups": [ { "id": 2, "title": "Configuration", "bounding": [ -1963.9391875601236, 26.440740456795428, 701.3865401112473, 1252.3667177085042 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 3, "title": "Generation", "bounding": [ -1235.323779258147, 23.74726822503463, 1622.29129703058, 1257.0571947827877 ], "color": "#3f789e", "font_size": 24, "flags": {} }, { "id": 4, "title": "Texturing", "bounding": [ 418.39123274505926, 28.31433082323494, 507.1181614553187, 1245.561616339957 ], "color": "#3f789e", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "workflowRendererVersion": "LG", "ue_links": [], "ds": { "scale": 0.5190725208926854, "offset": [ 2141.710362277785, 221.62822664094517 ] }, "links_added_by_ue": [], "frontendVersion": "1.42.11", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }