{
  "id": "52f0bd72-591d-4433-8a8f-8993592d999e",
  "revision": 0,
  "last_node_id": 10,
  "last_link_id": 5,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        -2,
        0
      ],
      "size": [
        510,
        570
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "frost_furred_yeti.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "frost_furred_yeti.png",
        "upload": "image"
      }
    },
    {
      "id": 3,
      "type": "MeshyImageToReliefNode",
      "pos": [
        588,
        0
      ],
      "size": [
        400,
        560
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1
        }
      ],
      "outputs": [
        {
          "name": "GLB",
          "type": "FILE_3D_GLB",
          "links": [
            2
          ]
        },
        {
          "name": "STL",
          "type": "FILE_3D_STL",
          "links": null
        },
        {
          "name": "OBJ",
          "type": "FILE_3D_OBJ",
          "links": null
        },
        {
          "name": "FBX",
          "type": "FILE_3D_FBX",
          "links": null
        },
        {
          "name": "USDZ",
          "type": "FILE_3D_USDZ",
          "links": null
        },
        {
          "name": "3MF",
          "type": "FILE_3D",
          "links": null
        },
        {
          "name": "depth_map",
          "type": "IMAGE",
          "links": [
            3
          ]
        },
        {
          "name": "preview",
          "type": "IMAGE",
          "links": [
            5
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "MeshyImageToReliefNode"
      },
      "widgets_values": [
        "high",
        6,
        60,
        "emboss",
        "plate",
        1,
        "off",
        42,
        "fixed",
        1024,
        true
      ],
      "widgets_values_named": {
        "relief_type": "high",
        "relief_type.carving_depth_mm": 6,
        "size_mm": 60,
        "carving_mode": "emboss",
        "base": "plate",
        "base.base_thickness_mm": 1,
        "bend": "off",
        "seed": 42,
        "control_after_generate": "fixed",
        "mesh_resolution": 1024,
        "color_mapping": true
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 4,
      "type": "SaveGLB",
      "pos": [
        1068,
        0
      ],
      "size": [
        490,
        680
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "mesh",
          "type": "MESH,FILE_3D_GLB,FILE_3D_GLTF,FILE_3D_OBJ,FILE_3D_FBX,FILE_3D_STL,FILE_3D_USDZ,FILE_3D_PLY,FILE_3D_SPLAT,FILE_3D_SPZ,FILE_3D_KSPLAT,FILE_3D_SPLAT_ANY,FILE_3D_POINT_CLOUD_ANY,FILE_3D",
          "link": 2
        }
      ],
      "outputs": [],
      "properties": {
        "Last Time Model File": "3d/api_meshy_image_to_relief_00001_.glb",
        "Last Time Model Folder": "output",
        "Camera Config": {
          "cameraType": "perspective",
          "fov": 35,
          "hasCustomUp": false,
          "state": {
            "position": {
              "x": -0.006541586308976656,
              "y": -0.006951633571373691,
              "z": 0.14454931470841068
            },
            "target": {
              "x": 0,
              "y": 0,
              "z": 0.0024999222350000003
            },
            "zoom": 1,
            "cameraType": "perspective",
            "quaternion": {
              "x": 0.024414829986126558,
              "y": -0.02300059680645986,
              "z": 0.0005618719225543095,
              "w": 0.9994371280492025
            },
            "fov": 35,
            "aspect": 1.88,
            "near": 0.01,
            "far": 10000,
            "frustum": {
              "left": -5,
              "right": 5,
              "top": 5,
              "bottom": -5
            }
          }
        },
        "Light Config": {
          "intensity": 3,
          "hdri": {
            "enabled": false,
            "hdriPath": "",
            "showAsBackground": false,
            "intensity": 1
          }
        },
        "Scene Config": {
          "showGrid": true,
          "backgroundColor": "#282828",
          "backgroundImage": "",
          "backgroundRenderMode": "tiled",
          "models": [
            {
              "position": {
                "x": 0,
                "y": 0,
                "z": 0
              },
              "quaternion": {
                "x": 0,
                "y": 0,
                "z": 0,
                "w": 1
              },
              "scale": {
                "x": 1,
                "y": 1,
                "z": 1
              }
            }
          ]
        }
      },
      "widgets_values": [
        "3d/api_meshy_image_to_relief",
        ""
      ],
      "widgets_values_named": {
        "filename_prefix": "3d/api_meshy_image_to_relief",
        "image": ""
      }
    },
    {
      "id": 5,
      "type": "SaveImageAdvanced",
      "pos": [
        1638,
        0
      ],
      "size": [
        490,
        660
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {},
      "widgets_values": [
        "3d/api_meshy_image_to_relief/depth",
        "png",
        "16-bit",
        "sRGB",
        "auto"
      ],
      "widgets_values_named": {
        "filename_prefix": "3d/api_meshy_image_to_relief/depth",
        "format": "png",
        "format.bit_depth": "16-bit",
        "format.input_color_space": "sRGB",
        "format.channels": "auto"
      }
    },
    {
      "id": 9,
      "type": "MarkdownNote",
      "pos": [
        -612,
        -80
      ],
      "size": [
        460,
        1375
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## Meshy: Image to Relief\n\n**Turn one photo into a bas-relief model and a 16-bit depth map.** Relief height is read from the photo's brightness — dark artwork on a light background is raised — which is what makes this the tool for 3D printing, laser engraving and CNC carving instead of rebuilding an object in 3D.\n\n**Input asset (demo):**\n- [frost_furred_yeti.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/frost_furred_yeti.png) — 880 x 1168 front-facing artwork on a light ground; the subject is dark enough to read as raised (required workflow input).\n\n### What each node does\n\n| Node | Role |\n|---|---|\n| **Load Image** | The artwork the relief is cut from. Transparency is dropped before upload, so flatten a transparent logo onto white first. |\n| **Meshy: Image to Relief** | The whole generation is this one API call: `relief_type`, `carving_mode`, `size_mm`, `base` and `bend` describe the physical piece, `mesh_resolution` sets the mesh density. It returns the relief as `GLB` (and `STL`, `OBJ`, `FBX`, `USDZ`, `3MF`) plus a 16-bit `depth_map` and a `preview` render — **only the outputs you connect are downloaded**.\nWith `preview` connected but no model output, Meshy still builds the GLB the preview is rendered from,\nit is just not saved; with no model output and no preview, the task returns only the depth map. |\n| **Save GLB** | Writes the relief mesh to `output/3d/`. |\n| **Save Image (Advanced)** | Writes the depth map as a **16-bit PNG** — feed that straight into a laser or CNC job as the height map. |\n| **Preview Image** | Shows the render Meshy returns for the finished relief. |\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `relief_type` → `carving_depth_mm` | `low` is the shallow cut used for laser engraving, CNC and plaques (3 mm default); `high` carves deeper for 3D printing (6 mm default). |\n| `carving_mode` | `emboss` raises the nearer parts of the photo, `engrave` cuts them in. |\n| `size_mm` | Length of the photo's longer side on the model, measured flat before any bend (20–250 mm). |\n| `base` | `plate` adds a backing plate, `base_thickness_mm` sets its depth; `none` keeps only the relief and drops thin edges via `removal_threshold`. |\n| `bend` | `off` keeps it flat; `convex` / `concave` wrap it around a cylinder, with `bend_axis` and `bend_angle`. |\n| `mesh_resolution` | 512–2048. 1024 already gives a ~50 MB GLB; 2048 roughly doubles it, and a bend doubles it again. |\n| `color_mapping` | Colours the mesh from the photo. STL and 3MF always stay white. |\n| `seed` | Fixed; the seed only decides whether the node re-runs, it does not reproduce an earlier relief. |\n\n---\n\n### Limitations\n\n- Billed per call; the sticker price is on the node.\n- Height is driven by luminance: a busy background or a dark background flattens the relief, and large flat white areas stay flat.\n- One artwork per call, front elevation only — this is not a way to model an object in the round (use Image to Model for that).\n- Every connected model output is generated and downloaded, so connecting `STL` as well as `GLB` doubles the wait and the disk.\n\n---\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare the input asset.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      ],
      "widgets_values_named": {
        "text": "## Meshy: Image to Relief\n\n**Turn one photo into a bas-relief model and a 16-bit depth map.** Relief height is read from the photo's brightness — dark artwork on a light background is raised — which is what makes this the tool for 3D printing, laser engraving and CNC carving instead of rebuilding an object in 3D.\n\n**Input asset (demo):**\n- [frost_furred_yeti.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/frost_furred_yeti.png) — 880 x 1168 front-facing artwork on a light ground; the subject is dark enough to read as raised (required workflow input).\n\n### What each node does\n\n| Node | Role |\n|---|---|\n| **Load Image** | The artwork the relief is cut from. Transparency is dropped before upload, so flatten a transparent logo onto white first. |\n| **Meshy: Image to Relief** | The whole generation is this one API call: `relief_type`, `carving_mode`, `size_mm`, `base` and `bend` describe the physical piece, `mesh_resolution` sets the mesh density. It returns the relief as `GLB` (and `STL`, `OBJ`, `FBX`, `USDZ`, `3MF`) plus a 16-bit `depth_map` and a `preview` render — **only the outputs you connect are downloaded**.\nWith `preview` connected but no model output, Meshy still builds the GLB the preview is rendered from,\nit is just not saved; with no model output and no preview, the task returns only the depth map. |\n| **Save GLB** | Writes the relief mesh to `output/3d/`. |\n| **Save Image (Advanced)** | Writes the depth map as a **16-bit PNG** — feed that straight into a laser or CNC job as the height map. |\n| **Preview Image** | Shows the render Meshy returns for the finished relief. |\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `relief_type` → `carving_depth_mm` | `low` is the shallow cut used for laser engraving, CNC and plaques (3 mm default); `high` carves deeper for 3D printing (6 mm default). |\n| `carving_mode` | `emboss` raises the nearer parts of the photo, `engrave` cuts them in. |\n| `size_mm` | Length of the photo's longer side on the model, measured flat before any bend (20–250 mm). |\n| `base` | `plate` adds a backing plate, `base_thickness_mm` sets its depth; `none` keeps only the relief and drops thin edges via `removal_threshold`. |\n| `bend` | `off` keeps it flat; `convex` / `concave` wrap it around a cylinder, with `bend_axis` and `bend_angle`. |\n| `mesh_resolution` | 512–2048. 1024 already gives a ~50 MB GLB; 2048 roughly doubles it, and a bend doubles it again. |\n| `color_mapping` | Colours the mesh from the photo. STL and 3MF always stay white. |\n| `seed` | Fixed; the seed only decides whether the node re-runs, it does not reproduce an earlier relief. |\n\n---\n\n### Limitations\n\n- Billed per call; the sticker price is on the node.\n- Height is driven by luminance: a busy background or a dark background flattens the relief, and large flat white areas stay flat.\n- One artwork per call, front elevation only — this is not a way to model an object in the round (use Image to Model for that).\n- Every connected model output is generated and downloaded, so connecting `STL` as well as `GLB` doubles the wait and the disk.\n\n---\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare the input asset.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 10,
      "type": "PreviewImage",
      "pos": [
        2208,
        0
      ],
      "size": [
        480,
        660
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewImage"
      }
    }
  ],
  "links": [
    [
      2,
      3,
      0,
      4,
      0,
      "FILE_3D_GLB"
    ],
    [
      1,
      1,
      0,
      3,
      0,
      "IMAGE"
    ],
    [
      3,
      3,
      6,
      5,
      0,
      "IMAGE"
    ],
    [
      5,
      3,
      7,
      10,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Photo to Relief",
      "bounding": [
        -72,
        -90,
        2830,
        840
      ],
      "color": "#3f789e",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.4361844004961027,
      "offset": [
        966.0683110811902,
        582.9103541349978
      ]
    },
    "frontendVersion": "1.59.10"
  },
  "version": 0.4
}
