From 530cc3ac21a8e280f6c2e1a78f6ee28498426488 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 15 Jul 2026 05:04:21 +0100 Subject: [PATCH] Define provider-owned planar camera composition --- docs/world-state-lowering.md | 14 +++++++- ....eve.unity_scene_projection.v1.schema.json | 36 +++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/docs/world-state-lowering.md b/docs/world-state-lowering.md index 4334355..adfe8f3 100644 --- a/docs/world-state-lowering.md +++ b/docs/world-state-lowering.md @@ -86,7 +86,19 @@ does not duplicate entity transforms as retained child components. World scenes may also publish generic presentation intent derived from provider state: -- `cameraTargetEntityId` names the entity the active camera rig should frame; +- `cameraRig` names the portable composition algorithm. For + `planar.top-down-follow.v1`, the play plane is XZ and the perspective camera + looks along negative Y; +- `cameraTargetEntityId` is the sole entity the active camera rig frames. A + lowerer must not add combat selection, renderer bounds, or another implicit + subject to that framing set; +- `cameraDistance`, `cameraVerticalFieldOfViewDegrees`, + `cameraTargetScreenX`, `cameraTargetScreenY`, and `cameraPositionDamping` + define the provider-owned lens and composition. Screen coordinates are + normalized viewport coordinates with a bottom-left origin; damping uses the + exponential response `1-exp(-damping*deltaTime)`; +- `ambientLightColor` and `ambientLightIntensity` define portable flat ambient + illumination when the selected camera rig supports it; - `subjectVisible` controls presentation of `playerEntityId` without deleting that authoritative entity from the world view; - `movementEnabled` controls whether the runtime emits movement intents; diff --git a/schemas/gamecult.eve.unity_scene_projection.v1.schema.json b/schemas/gamecult.eve.unity_scene_projection.v1.schema.json index 5a80177..4ac688e 100644 --- a/schemas/gamecult.eve.unity_scene_projection.v1.schema.json +++ b/schemas/gamecult.eve.unity_scene_projection.v1.schema.json @@ -172,6 +172,42 @@ "cameraTargetEntityId": { "type": "string" }, + "cameraDistance": { + "type": "number", + "exclusiveMinimum": 0 + }, + "cameraVerticalFieldOfViewDegrees": { + "type": "number", + "exclusiveMinimum": 0, + "exclusiveMaximum": 180 + }, + "cameraTargetScreenX": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "cameraTargetScreenY": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "cameraPositionDamping": { + "type": "number", + "minimum": 0 + }, + "ambientLightColor": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "items": { + "type": "number", + "minimum": 0 + } + }, + "ambientLightIntensity": { + "type": "number", + "minimum": 0 + }, "subjectVisible": { "type": "boolean" },