Generate PBR maps from an image
material_from_imageTurn ONE uploaded image (e.g. a logo PNG) into a full PBR material — deterministic, no AI. A mask (alpha channel, or bright/dark regions) drives derived roughness (baseRoughness/maskRoughness), embossed normal + height maps, optional metallic, and a base color composited over baseColor. Commits a new revision with the material (applyToObjects assigns it); maps pack into the .blend. Generated maps cap at 2048px on the longest edge — for full-resolution label/print work (4K macro shots), embed the original texture in a GLB and import via asset_import. Flow: upload_create → PUT → upload_complete → material_from_image. Returns a durable job handle. Explicit profile=surface/decal/supplied opts into the version-2 downloadable map workflow with roles and options; legacy mask/emboss arguments apply only when profile is omitted. Decals preserve transparency without implicit relief or metallic.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"assetId": "<assetId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "material_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | ||
| emboss | No | ||
| assetId | Yes | ||
| options | No | ||
| profile | No | ||
| baseColor | No | ||
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| maskSource | No | alpha | |
| baseMetallic | No | ||
| maskMetallic | No | ||
| materialName | No | Image Material | |
| baseRoughness | No | ||
| maskRoughness | No | ||
| applyToObjects | No | ||
| baseRevisionId | No | "HEAD" (default) targets the project's current head. Mutations MUST build on the head: passing an older revision is rejected with REVISION_CONFLICT, since history is linear. To continue from an older scene, revision_restore it forward first. | HEAD |
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes |