Files
amtarr-ComfyUI-TextureAlchemy/examples/12_procedural_material_creation.json
2025-12-02 16:47:10 -08:00

710 lines
11 KiB
JSON

{
"id": "f097e37c-4a17-4027-ad7d-08531e224747",
"revision": 0,
"last_node_id": 20,
"last_link_id": 35,
"nodes": [
{
"id": 3,
"type": "BlendModeUtility",
"pos": [
550,
300
],
"size": [
300,
200
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "base",
"type": "IMAGE",
"link": 30
},
{
"name": "blend",
"type": "IMAGE",
"link": 29
},
{
"name": "mask",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "result",
"type": "IMAGE",
"links": [
26
]
}
],
"title": "Blend Pattern + Noise",
"properties": {
"Node name for S&R": "BlendModeUtility"
},
"widgets_values": [
"overlay",
0.6
]
},
{
"id": 12,
"type": "PBRCombiner",
"pos": [
1750,
400
],
"size": [
161.07421875,
186
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "pbr_pipe",
"shape": 7,
"type": "PBR_PIPE",
"link": null
},
{
"name": "albedo",
"shape": 7,
"type": "IMAGE",
"link": 21
},
{
"name": "normal",
"shape": 7,
"type": "IMAGE",
"link": 24
},
{
"name": "ao",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "height",
"shape": 7,
"type": "IMAGE",
"link": 18
},
{
"name": "roughness",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "metallic",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "transparency",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "emission",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "pbr_pipe",
"type": "PBR_PIPE",
"links": [
19
]
}
],
"properties": {
"Node name for S&R": "PBRCombiner"
}
},
{
"id": 13,
"type": "ColorRamp",
"pos": [
1350,
250
],
"size": [
270,
178
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 28
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
21
]
}
],
"properties": {
"Node name for S&R": "ColorRamp"
},
"widgets_values": [
"custom",
"linear",
"[{\"pos\":0.0,\"r\":0.0,\"g\":0.0,\"b\":0.0},{\"pos\":1.0,\"r\":1.0,\"g\":1.0,\"b\":1.0}]"
]
},
{
"id": 14,
"type": "NormalMapCombiner",
"pos": [
1350,
700
],
"size": [
272.42578125,
102
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "base_normal",
"type": "IMAGE",
"link": 31
},
{
"name": "detail_normal",
"type": "IMAGE",
"link": 33
}
],
"outputs": [
{
"name": "combined_normal",
"type": "IMAGE",
"links": [
24
]
}
],
"properties": {
"Node name for S&R": "NormalMapCombiner"
},
"widgets_values": [
"reoriented",
1
]
},
{
"id": 4,
"type": "ScratchesGenerator",
"pos": [
550,
550
],
"size": [
300,
300
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "scratches",
"type": "IMAGE",
"links": [
27
]
},
{
"name": "height",
"type": "IMAGE",
"links": [
18,
25
]
}
],
"title": "Add Scratches",
"properties": {
"Node name for S&R": "ScratchesGenerator"
},
"widgets_values": [
512,
512,
0.3,
50,
200,
1,
180,
0.8,
624111766634300,
"randomize"
]
},
{
"id": 16,
"type": "BlendModeUtility",
"pos": [
950,
350
],
"size": [
270,
122
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "base",
"type": "IMAGE",
"link": 26
},
{
"name": "blend",
"type": "IMAGE",
"link": 27
},
{
"name": "mask",
"shape": 7,
"type": "IMAGE",
"link": 32
}
],
"outputs": [
{
"name": "result",
"type": "IMAGE",
"links": [
28
]
}
],
"properties": {
"Node name for S&R": "BlendModeUtility"
},
"widgets_values": [
"normal",
1
]
},
{
"id": 17,
"type": "ProceduralNoiseGenerator",
"pos": [
100,
200
],
"size": [
274.2095703125,
274
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "noise",
"type": "IMAGE",
"links": [
29
]
}
],
"properties": {
"Node name for S&R": "ProceduralNoiseGenerator"
},
"widgets_values": [
512,
512,
"perlin",
50,
4,
0.5,
2,
true,
516049441708237,
"randomize"
]
},
{
"id": 19,
"type": "EdgeWearMaskGenerator",
"pos": [
100,
1050
],
"size": [
273.94296875,
266
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "normal_map",
"shape": 7,
"type": "IMAGE",
"link": 35
},
{
"name": "curvature_map",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "ao_map",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "IMAGE",
"links": [
32
]
}
],
"properties": {
"Node name for S&R": "EdgeWearMaskGenerator"
},
"widgets_values": [
512,
512,
0.1,
2,
10,
0.3,
499800718496437,
"randomize"
]
},
{
"id": 11,
"type": "PBRSaver",
"pos": [
2150,
400
],
"size": [
300,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pbr_pipe",
"type": "PBR_PIPE",
"link": 19
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
34
]
}
],
"title": "Save Procedural Material",
"properties": {
"Node name for S&R": "PBRSaver"
},
"widgets_values": [
"procedural_material",
"",
"png",
"enumerate",
false
]
},
{
"id": 20,
"type": "PreviewImage",
"pos": [
2578.1993969373384,
425.017435365452
],
"size": [
140,
246
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 34
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.66",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 15,
"type": "HeightToNormal",
"pos": [
961.3038233017888,
777.3344649189662
],
"size": [
270.2994140625,
82
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "height",
"type": "IMAGE",
"link": 25
}
],
"outputs": [
{
"name": "normal",
"type": "IMAGE",
"links": [
33
]
}
],
"properties": {
"Node name for S&R": "HeightToNormal"
},
"widgets_values": [
1,
"sobel"
]
},
{
"id": 18,
"type": "PatternGenerator",
"pos": [
100,
600
],
"size": [
270,
294
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "pattern",
"type": "IMAGE",
"links": [
30
]
},
{
"name": "normal",
"type": "IMAGE",
"links": [
31,
35
]
}
],
"properties": {
"Node name for S&R": "PatternGenerator"
},
"widgets_values": [
512,
512,
"brick",
50,
2,
0,
0.2,
0.8,
932425698345849,
"randomize"
]
}
],
"links": [
[
18,
4,
1,
12,
4,
"IMAGE"
],
[
19,
12,
0,
11,
0,
"PBR_PIPE"
],
[
21,
13,
0,
12,
1,
"IMAGE"
],
[
24,
14,
0,
12,
2,
"IMAGE"
],
[
25,
4,
1,
15,
0,
"IMAGE"
],
[
26,
3,
0,
16,
0,
"IMAGE"
],
[
27,
4,
0,
16,
1,
"IMAGE"
],
[
28,
16,
0,
13,
0,
"IMAGE"
],
[
29,
17,
0,
3,
1,
"IMAGE"
],
[
30,
18,
0,
3,
0,
"IMAGE"
],
[
31,
18,
1,
14,
0,
"IMAGE"
],
[
32,
19,
0,
16,
2,
"IMAGE"
],
[
33,
15,
0,
14,
1,
"IMAGE"
],
[
34,
11,
0,
20,
0,
"IMAGE"
],
[
35,
18,
1,
19,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6303940863128483,
"offset": [
542.3337578788338,
893.0285648125841
]
},
"frontendVersion": "1.28.7"
},
"version": 0.4
}