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

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.

Inputs of Height Grid to Material Maps
FieldTypeDefaultDescription
gridtextarea"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)
sizeinteger128Square map size (px)
normalStrengthnumber8Normal strength
flipGreenbooleanfalseFlip normal green channel
roughnessnumber0.65Base roughness
variationnumber0.2Height-driven roughness variation
cavityStrengthnumber0.65Cavity strength
cavityRadiusinteger5Cavity neighborhood radius (px)
metalnessnumber0Uniform metallic value
seamBlendnumber0Edge 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)

{
  "mcpServers": {
    "renderloom-height-material": { "type": "http", "url": "https://renderloomheightmaterial.usefulweb.site/mcp" }
  }
}