Converts a IIIF Presentation API 4 manifest (containing a Scene) into a ThreePresenter SceneDescription.
Supported IIIF features:
type: "Model"
ModelDefinition
PointSelector
position
RotateTransform
rotation
ScaleTransform
scale
TranslateTransform
backgroundColor
environment.background
label
title
Non-Model body types (Lights, Cameras, Audio) are silently skipped — ThreePresenter will supply its own defaults.
Parsed JSON object of a IIIF Manifest
A SceneDescription ready to pass to presenter.loadScene()
presenter.loadScene()
If the manifest is not a valid IIIF Manifest with at least one Scene
const res = await fetch('https://example.org/manifest.json');const scene = parseIIIFManifest(await res.json());await presenter.loadScene(scene); Copy
const res = await fetch('https://example.org/manifest.json');const scene = parseIIIFManifest(await res.json());await presenter.loadScene(scene);
Converts a IIIF Presentation API 4 manifest (containing a Scene) into a ThreePresenter SceneDescription.
Supported IIIF features:
type: "Model"painting annotations →ModelDefinitionPointSelectoron the annotation target →positionRotateTransformon a SpecificResource body →rotation(degrees)ScaleTransform→scaleTranslateTransform→ added topositionbackgroundColoron the Scene →environment.backgroundlabelon the Manifest or Model body →titleNon-Model body types (Lights, Cameras, Audio) are silently skipped — ThreePresenter will supply its own defaults.