Skip to content

Instantly share code, notes, and snippets.

@azaroth42
Forked from tomcrane/presentation4.json
Last active June 14, 2023 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save azaroth42/e3c6fc982cec1beb35627595697ade7e to your computer and use it in GitHub Desktop.
Save azaroth42/e3c6fc982cec1beb35627595697ade7e to your computer and use it in GitHub Desktop.
{
"@context": "http://iiif.io/api/presentation/4/context.json",
"id": "https://example.org/iiif/3d/manifest",
"type": "Manifest",
"label": { "en": [ "I am 3D" ] },
"behavior": [ "some", "new", "behaviors", "probably" ],
"items": [
{
"id": "https://example.org/iiif/scene1",
"type": "Scene",
"label": { "en": [ "a scene!" ] },
"duration": 600,
"ambientLighting": {
"type": "Lighting",
"color": 256,
"intensity": 1.0
},
"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/my-model.someFormat",
"type": "Model",
"format": "application/something"
}
],
"selector": [
{
"type": "WktSelector",
"value": "POLYGON(( 0 0 0, 1 0 0, 0 1 0, 0 0 1 ))"
}
],
"transforms": [
{
"type": "ScaleTransform",
"x": 1.0,
"y": 1.1,
"z": 0.9
},
{
"type": "RotationTransform",
"x": 0.0,
"y": 45.0,
"z": 180.0
}
],
},
"target": [
{
"type": "SpecificResource",
"source": [
{
"id": "https://example.org/iiif/scene1/page/p1/1",
"type": "Scene"
}
]
"selector": [
{
"type": "PointSelector",
"x": 100.0,
"y": 100.0,
"z": 0.0
}
]
}
]
}
]
}
]
}
],
"structures": [
// yep can do these too
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment