Extract PBR maps from a GLB
extract_pbr_mapsExtracts embedded base color and normal images from local GLB files and splits packed metallic-roughness maps into separate roughness and metallic PNGs.
Instructions
Extract embedded base color and normal images, and split the glTF metallic-roughness image into roughness and metallic PNG files. Reads and writes local files only.
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": {
"glb_path": "<glb_path>"
},
"name": "extract_pbr_maps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glb_path | Yes | Path to a local .glb file. | |
| overwrite | No | Replace files with matching output names. Defaults to false. | |
| output_dir | No | Directory for extracted images. Defaults to <glb-name>-textures beside the GLB. |