From 1a62208e00e3b4a0075de786dca4750310a3062c Mon Sep 17 00:00:00 2001 From: Jamie Cope Date: Tue, 16 Dec 2025 13:16:01 -0500 Subject: [PATCH 1/3] Draft manifest implementing proposed zz_multiple_lights_with_intensities_and_colors.json --- ...le_lights_with_intensities_and_colors.json | 196 ++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 manifests/3_lights/multiple_lights_with_intensities_and_colors.json diff --git a/manifests/3_lights/multiple_lights_with_intensities_and_colors.json b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json new file mode 100644 index 0000000..1c1a4e5 --- /dev/null +++ b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json @@ -0,0 +1,196 @@ +{ + "@context": "http://iiif.io/api/presentation/4/context.json", + "id": "https://example.org/iiif/3d/model_origin.json", + "type": "Manifest", + "label": { + "en": [ + "Multiple lights with intensities and colors." + ] + }, + "summary": { + "en": [ + "Viewer should render the model at the scene origin, and then viewer should add two spotlights and an ambient light source, all of different colors. The viewer should add a default camera but NOT any other lighting." + ] + }, + "items": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "Scene", + "label": { + "en": [ + "Model with Two Spotlights and an Ambient light" + ] + }, + "backgroundColor": "#33404d", + "items": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "AnnotationPage", + "items": [ + { + "id": "https://example.org/iiif/3d/anno1", + "type": "Annotation", + "motivation": [ + "painting" + ], + "body": { + "type": "SpecificResource", + "source": { + "id": "https://example.org/iiif/3d/lights/1", + "type": "SpotLight", + "label": { + "en": [ + "Red Spot Light" + ] + }, + "color": "#ff0000", + "intensity": { + "type": "Value", + "value": 100, + "unit": "relative" + }, + "angle": 5 + }, + "transform": [ + { + "type": "RotateTransform", + "x": 90.0, + "y": 0, + "z": 0 + }, + { + "type": "TranslateTransform", + "x": 0, + "y": 3.5, + "z": 3.5 + } + ] + }, + "target": { + "type": "SpecificResource", + "source": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "Scene" + } + ] + } + }, + { + "id": "https://example.org/iiif/3d/anno2", + "type": "Annotation", + "motivation": [ + "painting" + ], + "body": { + "type": "SpecificResource", + "source": { + "id": "https://example.org/iiif/3d/lights/1", + "type": "AmbientLight", + "label": { + "en": [ + "Green Ambient Light" + ] + }, + "color": "#7aff40", + "intensity": { + "type": "Value", + "value": 0.5, + "unit": "relative" + } + } + }, + "target": { + "type": "SpecificResource", + "source": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "Scene" + } + ] + } + }, + { + "id": "https://example.org/iiif/3d/anno3", + "type": "Annotation", + "motivation": [ + "painting" + ], + "body": { + "type": "SpecificResource", + "source": { + "id": "https://example.org/iiif/3d/lights/1", + "type": "SpotLight", + "label": { + "en": [ + "Blue Spot Light" + ] + }, + "color": "#0f00ff", + "intensity": { + "type": "Value", + "value": 10, + "unit": "relative" + }, + "angle": 5 + }, + "transform": [ + { + "type": "RotateTransform", + "x": 90.0, + "y": 0, + "z": 0 + }, + { + "type": "TranslateTransform", + "x": 0, + "y": 2.5, + "z": 3.5 + } + ] + }, + "target": { + "type": "SpecificResource", + "source": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "Scene" + } + ] + } + }, + { + "id": "https://example.org/iiif/3d/anno4", + "type": "Annotation", + "motivation": [ + "painting" + ], + "body": { + "type": "SpecificResource", + "source": { + "id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/astronaut/astronaut.glb", + "type": "Model", + "label": { + "en": [ + "" + ] + }, + "format": "model/gltf-binary" + } + }, + "target": { + "type": "SpecificResource", + "source": [ + { + "id": "https://example.org/iiif/scene1/page/p1/1", + "type": "Scene" + } + ] + } + } + ] + } + ] + } + ] +} \ No newline at end of file From 600b780d80482b12b5d56e9c055d8dee18bd1cbe Mon Sep 17 00:00:00 2001 From: Jamie Cope Date: Tue, 16 Dec 2025 13:18:55 -0500 Subject: [PATCH 2/3] Summary update --- .../3_lights/multiple_lights_with_intensities_and_colors.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/3_lights/multiple_lights_with_intensities_and_colors.json b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json index 1c1a4e5..8b80c3e 100644 --- a/manifests/3_lights/multiple_lights_with_intensities_and_colors.json +++ b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json @@ -9,7 +9,7 @@ }, "summary": { "en": [ - "Viewer should render the model at the scene origin, and then viewer should add two spotlights and an ambient light source, all of different colors. The viewer should add a default camera but NOT any other lighting." + "Viewer should render the model at the scene origin, and then viewer should add one red spotlight pointing at the front of the helmet, one blue spotlight point at the front-center of the model, and an ambient green light source. The viewer should add a default camera but NOT any other lighting." ] }, "items": [ From 38ba95f989001f6792f746a42eb9ec2cf1f79070 Mon Sep 17 00:00:00 2001 From: Jamie Cope Date: Tue, 16 Dec 2025 13:56:13 -0500 Subject: [PATCH 3/3] Fixed missing label --- .../3_lights/multiple_lights_with_intensities_and_colors.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/3_lights/multiple_lights_with_intensities_and_colors.json b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json index 8b80c3e..5330cb3 100644 --- a/manifests/3_lights/multiple_lights_with_intensities_and_colors.json +++ b/manifests/3_lights/multiple_lights_with_intensities_and_colors.json @@ -172,7 +172,7 @@ "type": "Model", "label": { "en": [ - "" + "Astronaut" ] }, "format": "model/gltf-binary"