Skip to content

Commit 3c53f17

Browse files
committed
Adding use case 6 3D
1 parent c864265 commit 3c53f17

2 files changed

Lines changed: 44 additions & 37 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/4/context.json",
3+
"id": "https://iiif.io/api/presentation/4.0/example/uc06_3d.json",
4+
"type": "Manifest",
5+
"label": { "en": [ "Single Model" ] },
6+
"summary": {
7+
"en": [
8+
"Viewer should render the model at the scene origin, and then viewer should add default lighting and camera"
9+
]
10+
},
11+
"items": [
12+
{
13+
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1",
14+
"type": "Scene",
15+
"label": {
16+
"en": [
17+
"A Scene"
18+
]
19+
},
20+
"items": [
21+
{
22+
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1/page/1",
23+
"type": "AnnotationPage",
24+
"items": [
25+
{
26+
"id": "https://iiif.io/api/presentation/4.0/example/uc06/3d/anno/1",
27+
"type": "Annotation",
28+
"motivation": [ "painting" ],
29+
"body": [
30+
{
31+
"id": "https://fixtures.iiif.io/3d/google/astronaut.glb",
32+
"type": "Model",
33+
"format": "model/gltf-binary"
34+
}
35+
],
36+
"target": [ "https://iiif.io/api/presentation/4.0/example/uc06/scene/1" ]
37+
}
38+
]
39+
}
40+
]
41+
}
42+
]
43+
}

source/presentation/4.0/index.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -484,43 +484,7 @@ This example is a Manifest with a single Scene, with a single 3D model of a spac
484484

485485
> PNG of Scene
486486
487-
```jsonc
488-
{
489-
"@context": "http://iiif.io/api/presentation/4/context.json",
490-
"id": "https://example.org/iiif/3d/model_origin.json",
491-
"type": "Manifest",
492-
"label": { "en": ["Single Model"] },
493-
"summary": { "en": ["Viewer should render the model at the scene origin, and then viewer should add default lighting and camera"] },
494-
"items": [
495-
{
496-
"id": "https://example.org/iiif/scene1/page/p1/1",
497-
"type": "Scene",
498-
"label": { "en": ["A Scene"] },
499-
"items": [
500-
{
501-
"id": "https://example.org/iiif/scene1/page/p1/1",
502-
"type": "AnnotationPage",
503-
"items": [
504-
{
505-
"id": "https://example.org/iiif/3d/anno1",
506-
"type": "Annotation",
507-
"motivation": ["painting"],
508-
"body": [
509-
{
510-
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/astronaut/astronaut.glb",
511-
"type": "Model",
512-
"format": "model/gltf-binary"
513-
}
514-
],
515-
"target": ["https://example.org/iiif/scene1/page/p1/1"]
516-
}
517-
]
518-
}
519-
]
520-
}
521-
]
522-
}
523-
```
487+
{% include code_example.html src="uv06_3d.json" %}
524488

525489
>
526490
**Key Points**

0 commit comments

Comments
 (0)