API & MCP
Everything a person can do on Height Grid to Material Maps, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://renderloomheightmaterial.usefulweb.site/api/v1/calculate– run Height Grid to Material MapsGET https://renderloomheightmaterial.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Height Grid to Material Maps
Author a rectangular height field from 0–1 samples, interpolate it into a texture, and generate seven PNG maps with explicit normal convention and editable roughness, cavity and metallic settings. Download a map ZIP and exact Renderloom material project.
| Field | Type | Default | Description |
|---|---|---|---|
grid | textarea | "0.15, 0.3, 0.5, 0.3, 0.15\n0.3, 0.65, 0.85, 0.65, 0.3\n0.5, 0.85, 1, 0.85, 0.5\ | Height grid (0–1, rows separated by newlines) |
size | integer | 128 | Square map size (px) |
normalStrength | number | 8 | Normal strength |
flipGreen | boolean | false | Flip normal green channel |
roughness | number | 0.65 | Base roughness |
variation | number | 0.2 | Height-driven roughness variation |
cavityStrength | number | 0.65 | Cavity strength |
cavityRadius | integer | 5 | Cavity neighborhood radius (px) |
metalness | number | 0 | Uniform metallic value |
seamBlend | number | 0 | Edge feather fraction |
Example request
A raised rounded tile
curl -X POST https://renderloomheightmaterial.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://renderloomheightmaterial.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
renderloom_height_material - Local stdio connector:
node src/mcp-stdio.ts --tool=renderloom-height-material
{
"mcpServers": {
"renderloom-height-material": { "type": "http", "url": "https://renderloomheightmaterial.usefulweb.site/mcp" }
}
}