Skip to content

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions recipe/0125-rendering-3d/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: Including a 3D Rendering
id: 93
layout: recipe
tags: [tbc]
summary: "You want to include a 3D model representation"
viewers:
- Mirador
- UV
topic: property
property: rendering
---

## 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.
Copy link
Member

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.


## 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.
Copy link
Member

Choose a reason for hiding this comment

The 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
{% include manifest_links.html viewers="UV, Mirador" manifest="manifest.json" %}

{% include jsonviewer.html src="manifest.json" config='data-line="12-23"' %}



# Related recipes

Provide a bulleted list of related recipes and why they are relevant.


{% include acronyms.md %}
{% include links.md %}

45 changes: 45 additions & 0 deletions recipe/0125-rendering-3d/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"@context": [
"http://iiif.io/api/presentation//context.json"
],
"id": "{{ id.url }}",
"type": "Manifest",
"label": { "en": [ "Image with 3d rendering" ] },
"rendering": [
{
"id": "https://example.org/iiif/book1.glb",
"type": "Model",
"label": { "en": [ "Download as GLB" ] },
"format": "model/gltf-binary"
}
],
"items": [
{
"id": "{{ id.path }}/canvas/1",
"type": "Canvas",
"height": 1800,
"width": 1200,
"items": [
{
"id": "{{ id.path }}/canvas/1/page/1",
"type": "AnnotationPage",
"items": [
{
"id": "{{ id.path }}/canvas/1/annotation/1",
"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": "{{ id.path }}/canvas/1"
}
]
}
]
}
]
}