Create a PBR material
create_materialBuild a PBR material from a photo or plain values, generating base colour, normal, roughness, metallic, height and ambient occlusion maps plus a portable package and 3D render.
Instructions
Make a PBR material with MaterialCraft (a Substance Designer-class node-based material designer): from a photo or texture (image_path: colour from the picture, height from its brightness, a normal map from the height, roughness and ambient occlusion from its tones) or from plain values (colour, roughness, metallic). Saves the texture maps (base colour, normal, roughness, metallic, height, ambient occlusion), a portable .mcmat for TextureCraft and the .mcraft / .sbs package, and returns a 3D render.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Material (graph) and file name. | material |
| size | No | Graph size in pixels (a power of two). | |
| color | No | Base colour "#rrggbb" (without image_path). | #808080 |
| scene | No | 3D preview object. | material_ball |
| formats | No | ||
| preview | No | ||
| map_size | No | Pixels of the larger side (a power of two; default: the graph size). | |
| metallic | No | ||
| bit_depth | No | ||
| overwrite | No | Replace existing outputs. | |
| roughness | No | 0 = mirror-smooth, 1 = matte (with image_path: the average). | |
| image_path | No | Absolute photo or texture to build the material from (png, jpg, tga, tif, webp, exr...). | |
| map_format | No | png | |
| output_dir | No | Absolute output folder (default: next to the input; required for new files). | |
| output_path | No | Absolute output file for the first format (its extension must match). | |
| invert_height | No | With image_path: dark parts are high (bricks between light mortar). | |
| height_strength | No | With image_path: depth of the normal map from the picture. | |
| roughness_range | No | With image_path: how much the roughness varies with the tones. |