Cards i > 0 flag the extruded face under their first sample as wall (R = G = 255 in the
geometry file, albedo with the face up); the manifest gains camera {r_m, heading_max_deg} and
per-card distance_m (non-wall median) and scale = d / (d - r). The baker refuses |r| >= half the
nearest distance and any camera that uncovers the frame. Tests and mutants for each rule.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
307 lines
5.5 KiB
JSON
307 lines
5.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "ridge-bake manifest v2 and index v1",
|
|
"$defs": {
|
|
"manifest": {
|
|
"type": "object",
|
|
"required": [
|
|
"schema",
|
|
"baker_version",
|
|
"bake_id",
|
|
"place",
|
|
"view",
|
|
"curvature",
|
|
"encoding",
|
|
"camera",
|
|
"cards",
|
|
"w",
|
|
"h",
|
|
"bytes",
|
|
"attribution"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema": {
|
|
"const": 2
|
|
},
|
|
"baker_version": {
|
|
"type": "integer"
|
|
},
|
|
"bake_id": {
|
|
"type": "string"
|
|
},
|
|
"place": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"lat",
|
|
"lon",
|
|
"altitude_km",
|
|
"eye_m"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"lat": {
|
|
"type": "number"
|
|
},
|
|
"lon": {
|
|
"type": "number"
|
|
},
|
|
"altitude_km": {
|
|
"type": "number"
|
|
},
|
|
"eye_m": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"view": {
|
|
"type": "object",
|
|
"required": [
|
|
"look_az_deg",
|
|
"window_deg",
|
|
"plane_w",
|
|
"plane_h",
|
|
"px_per_deg_h",
|
|
"px_per_deg_v",
|
|
"exaggeration",
|
|
"horizon_row",
|
|
"sky_row",
|
|
"near_row"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"look_az_deg": {
|
|
"type": "number"
|
|
},
|
|
"window_deg": {
|
|
"const": 72
|
|
},
|
|
"plane_w": {
|
|
"type": "integer",
|
|
"maximum": 4096
|
|
},
|
|
"plane_h": {
|
|
"type": "integer"
|
|
},
|
|
"px_per_deg_h": {
|
|
"type": "number"
|
|
},
|
|
"px_per_deg_v": {
|
|
"type": "number"
|
|
},
|
|
"exaggeration": {
|
|
"type": "number"
|
|
},
|
|
"horizon_row": {
|
|
"type": "number"
|
|
},
|
|
"sky_row": {
|
|
"type": "number"
|
|
},
|
|
"near_row": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"curvature": {
|
|
"type": "object",
|
|
"required": [
|
|
"r_earth_m",
|
|
"k_ref"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"r_earth_m": {
|
|
"type": "number"
|
|
},
|
|
"k_ref": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"encoding": {
|
|
"type": "object",
|
|
"required": [
|
|
"log_d_min",
|
|
"log_d_max",
|
|
"normal"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"log_d_min": {
|
|
"type": "number"
|
|
},
|
|
"log_d_max": {
|
|
"type": "number"
|
|
},
|
|
"normal": {
|
|
"const": "rt8"
|
|
}
|
|
}
|
|
},
|
|
"camera": {
|
|
"type": "object",
|
|
"required": [
|
|
"r_m",
|
|
"heading_max_deg"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"r_m": {
|
|
"type": "number"
|
|
},
|
|
"heading_max_deg": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"cards": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 6,
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"top",
|
|
"h",
|
|
"near_m",
|
|
"far_m",
|
|
"median_m",
|
|
"distance_m",
|
|
"scale",
|
|
"colour",
|
|
"geometry"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"top": {
|
|
"type": "integer"
|
|
},
|
|
"h": {
|
|
"type": "integer"
|
|
},
|
|
"near_m": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"far_m": {
|
|
"type": [
|
|
"number",
|
|
"null"
|
|
]
|
|
},
|
|
"median_m": {
|
|
"type": "number"
|
|
},
|
|
"distance_m": {
|
|
"type": "number"
|
|
},
|
|
"scale": {
|
|
"type": "number"
|
|
},
|
|
"colour": {
|
|
"type": "object",
|
|
"required": [
|
|
"file",
|
|
"bytes"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"bytes": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"geometry": {
|
|
"type": "object",
|
|
"required": [
|
|
"file",
|
|
"bytes"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"bytes": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "nearest first; the runtime paints the list last to first. top and h place the card back at its rows of the frame; near_m and far_m are the median seam depths, null at the ends; median_m and distance_m are the median distance of the card's solid pixels that are not wall; scale = distance_m / (distance_m - camera.r_m) is the card's pan rate per unit of heading and its static size."
|
|
}
|
|
},
|
|
"w": {
|
|
"type": "integer"
|
|
},
|
|
"h": {
|
|
"type": "integer"
|
|
},
|
|
"bytes": {
|
|
"type": "integer"
|
|
},
|
|
"attribution": {
|
|
"type": "object",
|
|
"required": [
|
|
"credit_line",
|
|
"licence",
|
|
"dem_source",
|
|
"url"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"credit_line": {
|
|
"type": "string"
|
|
},
|
|
"licence": {
|
|
"type": "string"
|
|
},
|
|
"dem_source": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"index": {
|
|
"type": "object",
|
|
"required": [
|
|
"schema",
|
|
"default",
|
|
"places"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema": {
|
|
"const": 1
|
|
},
|
|
"default": {
|
|
"type": "string"
|
|
},
|
|
"places": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|