IIIF / 3d

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

Display Multiple 3D Models in a Shared Space #12

Open JulieWinchester opened 1 year ago

JulieWinchester commented 1 year ago

As an Art Historian

I want to be able to add multiple 3D models to a 3D environment specifying their exact position, orientation, and scale.

So that I can visualise the placement of statues in a cathedral, their original context.

related to IIIF/iiif-3d-stories#6

copy of IIIF/iiif-3d-stories#10

JulieWinchester commented 1 year ago

Thanks to Jamie Cope, we now have a Smithsonian Voyager demo for this use case. This demo places a baseball bat 3D model in the usual astronaut's hand, and involves rotating, translating, and scaling the bat. It would be good to expand this to include the specific JSON and coordinates used for these purposes, since it's a subset of the overall Voyager scene configuration JSON.

https://codesandbox.io/s/voyager-multi-model-demo-rz5glf

JulieWinchester commented 1 year ago

From IIIF 3D TSG regular meeting on 4/4/2023:

gjcope commented 1 year ago

@edsilv For the Voyager demo, the scale is happening on a parent node, so instead of the normal scaling happening first, it's happening last. So to get the correct positioning you would use the same values with pre-multiplied scale (1.5).

"translation": [-0.41636295, -0.144762, 0.3987402], "rotation": [0.6904522, -0.2681352, 0.3108248, 0.5956234], "scale": [1.5, 1.5, 1.5]

gjcope commented 1 year ago

These numbers are also assuming the centered astronaut model.

edsilv commented 1 year ago

codesandbox for multiple objects in a shared space: https://codesandbox.io/s/iiif-3d-r3f-demo-tyn50d