IIIF / 3d

Repository to help plan the 3d work with IIIF
https://iiif.github.io/3d/
15 stars 4 forks source link

Host a single "canonical" annotation JSON file #23

Closed JulieWinchester closed 1 year ago

JulieWinchester commented 1 year ago

Acceptance criteria:

JulieWinchester commented 1 year ago

Based on the notes from https://github.com/IIIF/3d/issues/22, here are my suggestions:

Suggested example JSON:

{
  "annotations": [
    {
      "id": 0,
      "normal": [ 0.294, 0.114, 0.949 ],
      "position": [ 0.017, 1.806, 0.341 ],
      "value": "visor"
    },
    {
      "id": 1,
      "normal": [ 0.472, 0.059, 0.880 ],
      "position": [ 0.518, 0.956, 0.122 ],
      "value": "glove"
    }
  ]
}
gjcope commented 1 year ago

Per 4/19 meeting - Will we include annotation tag offset in the proposed spec? Would that happen through magnitude of normal vector or in another way?

JulieWinchester commented 1 year ago

This example JSON is now hosted on IIIF 3D repo: https://github.com/IIIF/3d/blob/main/demo/json/label-annotation-issue-17.json

edsilv commented 1 year ago

That's the model-viewer demo updated to use the above annotation json format: https://codesandbox.io/s/model-viewer-annotations-demo-3k5tqo?file=/index.html