-
Notifications
You must be signed in to change notification settings - Fork 32
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
edsilv
wants to merge
7
commits into
master
Choose a base branch
from
3d-recipes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7f97896
added 3d rendering recipe
edsilv 7cc3a97
Merge branch 'master' into 3d-recipes
kirschbombe a84194d
Merge branch 'master' into 3d-recipes
glenrobson 119eaf8
Updating style
glenrobson 06945df
Moving rendering higher up and adding highlighting
glenrobson e46d778
Fixing highlighting
glenrobson 0368d69
One line short!
glenrobson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
## 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 | ||
{% include manifest_links.html viewers="UV, Mirador" manifest="manifest.json" %} | ||
|
||
{% include jsonviewer.html src="manifest.json" config='data-line="12-23"' %} | ||
|
||
|
||
glenrobson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Related recipes | ||
|
||
Provide a bulleted list of related recipes and why they are relevant. | ||
|
||
|
||
{% include acronyms.md %} | ||
{% include links.md %} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.