Schemas / Spatial / scene
rig.spatial.camera
v0.31.0 · draft 7 fields 0 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
active |
bool | optional | Optional. Used for present (typically one); absent = true |
projection |
enumperspective · orthographic | optional | Optional. perspective, orthographic; absent = perspective |
fovYDegrees |
float | optional | Optional. Perspective FOV (degrees); absent = 60. Ignored if orthographic |
orthoHeight |
float | optional | Ortho frustum height; required when orthographic |
nearClip |
float | optional | Optional. Near plane; absent = 0.1 |
farClip |
float | optional | Optional. Far plane; absent = 1000 |
aspect |
float | optional | Optional. Absent or 0 = use viewport aspect at present |
Projection parameters (pose lives on transform). Format when present.
Looks along local −Z. 3D is right-handed, +Y up - Axes.
No camera object / GPU handle.
JSON Schema
Resolves at https://rig.works/schemas/rig.spatial.camera.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.spatial.camera.schema.json",
"title": "rig.spatial.camera",
"type": "object",
"additionalProperties": false,
"properties": {
"active": {
"$ref": "./_defs.schema.json#/$defs/bool"
},
"projection": {
"type": "string",
"enum": [
"perspective",
"orthographic"
]
},
"fovYDegrees": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"orthoHeight": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"nearClip": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"farClip": {
"$ref": "./_defs.schema.json#/$defs/float"
},
"aspect": {
"$ref": "./_defs.schema.json#/$defs/float"
}
}
}