Added ComfyUI workflow to apply views from high poly to low poly
This commit is contained in:
parent
f30ed146f9
commit
2db1b30407
2 changed files with 121 additions and 2 deletions
106
setup/HighPoly to LowPoly Texturing with Trellis2.json
Normal file
106
setup/HighPoly to LowPoly Texturing with Trellis2.json
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
{
|
||||
"1": {
|
||||
"inputs": {
|
||||
"glb_path": ""
|
||||
},
|
||||
"class_type": "Trellis2LoadMesh",
|
||||
"_meta": {
|
||||
"title": "High Poly Mesh"
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"inputs": {
|
||||
"glb_path": ""
|
||||
},
|
||||
"class_type": "Trellis2LoadMesh",
|
||||
"_meta": {
|
||||
"title": "Low Poly Mesh"
|
||||
}
|
||||
},
|
||||
"3": {
|
||||
"inputs": {
|
||||
"render_size": 2048,
|
||||
"ortho_scale": 1.2,
|
||||
"azimuths": "0,90,180,270,0,0,45,45,315,315,135,135,225,225",
|
||||
"elevations": "0,0,0,0,90,-90,20,-20,20,-20,20,-20,20,-20",
|
||||
"add_shading": false,
|
||||
"trimesh": [
|
||||
"1",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "Trellis2RenderMultiViewNvdiffrast",
|
||||
"_meta": {
|
||||
"title": "Trellis2 - Render MultiView (Nvdiffrast)"
|
||||
}
|
||||
},
|
||||
"5": {
|
||||
"inputs": {
|
||||
"texture_size": 1024,
|
||||
"blend_texture": false,
|
||||
"blend_exponent": 1,
|
||||
"ortho_scale": 1.2,
|
||||
"norm_size": 1.15,
|
||||
"fill_holes": true,
|
||||
"max_hole_size": 0,
|
||||
"use_metallic": false,
|
||||
"depth_eps": 0.01,
|
||||
"mesh_cluster_threshold_cone_half_angle_rad": 60,
|
||||
"add_alpha_channel": false,
|
||||
"front_weight": 1,
|
||||
"back_weight": 1,
|
||||
"left_weight": 0.01,
|
||||
"right_weight": 0.01,
|
||||
"top_weight": 0.01,
|
||||
"bottom_weight": 0.01,
|
||||
"custom_azimuths": [
|
||||
"3",
|
||||
2
|
||||
],
|
||||
"custom_elevations": [
|
||||
"3",
|
||||
3
|
||||
],
|
||||
"custom_weights": "1,1,1,1,1,1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1",
|
||||
"trimesh": [
|
||||
"2",
|
||||
0
|
||||
],
|
||||
"custom_images": [
|
||||
"3",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "Trellis2MultiViewTexturing",
|
||||
"_meta": {
|
||||
"title": "Trellis2 - Projection MultiView Texturing"
|
||||
}
|
||||
},
|
||||
"6": {
|
||||
"inputs": {
|
||||
"filename_prefix": "3DGenStudioHighPolyToLowPoly",
|
||||
"file_format": "glb",
|
||||
"trimesh": [
|
||||
"5",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "Trellis2ExportMesh",
|
||||
"_meta": {
|
||||
"title": "Trellis2 - Export Mesh"
|
||||
}
|
||||
},
|
||||
"7": {
|
||||
"inputs": {
|
||||
"model_file": [
|
||||
"6",
|
||||
0
|
||||
],
|
||||
"image": ""
|
||||
},
|
||||
"class_type": "Preview3D",
|
||||
"_meta": {
|
||||
"title": "Preview 3D & Animation"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -615,7 +615,7 @@
|
|||
"Name": "Refine Mesh with Trellis2",
|
||||
"File": "setup/Refine Mesh with Trellis2.json",
|
||||
"Inputs": [
|
||||
{ "Node": "3", "Input": "glb_path", "Name": "Source Image", "Type": "Mesh" },
|
||||
{ "Node": "3", "Input": "glb_path", "Name": "Source Mesh", "Type": "Mesh" },
|
||||
{ "Node": "2", "Input": "image", "Name": "Source Image", "Type": "Image" },
|
||||
{ "Node": "28", "Input": "value", "Name": "Target Face Number", "Type": "Number" },
|
||||
{ "Node": "4", "Input": "seed", "Name": "Seed", "Type": "Number" },
|
||||
|
|
@ -624,6 +624,19 @@
|
|||
"Outputs": [
|
||||
{ "Node": "7", "Name": "Save Mesh", "Type": "Mesh" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "HighPoly to LowPoly Texturing with Trellis2",
|
||||
"File": "setup/HighPoly to LowPoly Texturing with Trellis2.json",
|
||||
"Inputs": [
|
||||
{ "Node": "1", "Input": "glb_path", "Name": "HighPoly Mesh", "Type": "Mesh" },
|
||||
{ "Node": "2", "Input": "glb_path", "Name": "LowPoly Mesh", "Type": "Mesh" },
|
||||
{ "Node": "3", "Input": "render_size", "Name": "View Size", "Type": "Number" },
|
||||
{ "Node": "5", "Input": "texture_size", "Name": "Texture Size", "Type": "Number" }
|
||||
],
|
||||
"Outputs": [
|
||||
{ "Node": "7", "Name": "Save Mesh", "Type": "Mesh" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue