(decisions and suggestions from IIIF/3d#11 (comment))
We need to be able to scale and rotate models to place them in the Scene.
To do this we can add a transforms property to SpecificResource, to specify an ordered sequence of changes to make to the model (or selected part of the model) before placing at the painting annotation target (as above #2253)
From Rob’s draft:
Transformers are instructions as to how to change the resource before rendering in the client, and as such comes between the Selector and the Style in the Annotation rendering workflow.
We need at least two transform classes:
"transforms": [
{
"type": "ScaleTransform",
"x": 1.0,
"y": 1.1,
"z": 0.9
},
{
"type": "RotationTransform",
"x": 0.0,
"y": 45.0,
"z": 180.0
}
]
Note that a full example of a SpecificResource may also have a selector (as #2255) if only part of the model is required.
(decisions and suggestions from IIIF/3d#11 (comment))
We need to be able to scale and rotate models to place them in the
Scene.To do this we can add a transforms property to SpecificResource, to specify an ordered sequence of changes to make to the model (or selected part of the model) before placing at the painting annotation target (as above #2253)
From Rob’s draft:
We need at least two transform classes:
Note that a full example of a SpecificResource may also have a selector (as #2255) if only part of the model is required.