-
Notifications
You must be signed in to change notification settings - Fork 33
added 3d rendering recipe #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
7f97896
7cc3a97
a84194d
119eaf8
06945df
e46d778
0368d69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| --- | ||
| title: Including a 3D Rendering | ||
| id: 93 | ||
| layout: recipe | ||
| tags: [tbc] | ||
| summary: "You want to include a 3D model representation" | ||
| --- | ||
|
|
||
|
|
||
| ## Use Case | ||
|
|
||
| You want to view an object from any orbital point of view or zoom level. | ||
| You want to view an object in augmented reality/XR in order to gain a better understanding of its dimensions and physical properties. | ||
|
|
||
| ## Implementation notes | ||
|
|
||
| Add a [`rendering`](https://iiif.io/api/presentation/3.0/#rendering) to your manifest either at the root level, or any applicable child resource. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you go into more detail about the rendering property. Also when would it make sense to have it at the root level and when at a canvas? |
||
| The rendering MUST have a dereferenceable `id` linking to the supplied 3D model, a `type` of `Model`, and a `label`. | ||
|
|
||
| ## Restrictions | ||
|
|
||
|
|
||
| ## Example | ||
|
|
||
glenrobson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ```json | ||
| { | ||
| "@context": [ | ||
| "http://www.w3.org/ns/anno.jsonld", | ||
| "http://iiif.io/api/presentation//context.json" | ||
| ], | ||
| "id": "https://example.org/iiif/book1/manifest", | ||
| "type": "Manifest", | ||
| "label": { "en": [ "Image 1" ] }, | ||
| "items": [ | ||
| { | ||
| "id": "https://example.org/iiif/book1/canvas/p1", | ||
| "type": "Canvas", | ||
| "height": 1800, | ||
| "width": 1200, | ||
| "items": [ | ||
| { | ||
| "id": "https://example.org/iiif/book1/page/p1/1", | ||
| "type": "AnnotationPage", | ||
| "items": [ | ||
| { | ||
| "id": "https://example.org/iiif/book1/annotation/p0001-image", | ||
| "type": "Annotation", | ||
| "motivation": "painting", | ||
| "body": { | ||
| "id": "http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png", | ||
|
||
| "type": "Image", | ||
| "format": "image/png", | ||
| "height": 1800, | ||
| "width": 1200 | ||
| }, | ||
| "target": "https://example.org/iiif/book1/canvas/p1" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "rendering": [ | ||
| { | ||
| "id": "https://example.org/iiif/book1.glb", | ||
|
||
| "type": "Model", | ||
| "label": { "en": [ "Download as GLB" ] }, | ||
| "format": "model/gltf-binary" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| # Related recipes | ||
|
|
||
| Provide a bulleted list of related recipes and why they are relevant. | ||
|
|
||
|
|
||
| {% include acronyms.md %} | ||
| {% include links.md %} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give more details on the use case. This is a good example to follow: https://iiif.io/api/cookbook/recipe/0007-string-formats/. Its best to assume the reader is a novice with IIIF.