Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targeting specific 3D regions of a scene #2269

Open
tomcrane opened this issue Jan 30, 2024 · 3 comments
Open

Targeting specific 3D regions of a scene #2269

tomcrane opened this issue Jan 30, 2024 · 3 comments
Labels
3d presentation Ready-for-Eds Editorial changes ready for Editorial review

Comments

@tomcrane
Copy link
Contributor

Split from #2255

A comment might target a 3D volume within the Scene.

A suggested approach is to use a WktSelector:

https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry

    "target": [
        {
            "type": "SpecificResource",
            "source": [
                {
                    "id": "https://example.org/iiif/scene1/page/p1/1",
                    "type": "Scene"
                }
            ],

       "selector": [
           {
               "type": "WktSelector",
               "value": "POLYGONZ(( 0 0 0, 1 0 0, 0 1 0, 0 0 1 ))"
           }
        ]
        }
    ]

Note that the value uses POLYGONZ not POLYGON: https://gis.stackexchange.com/a/206631

@tomcrane tomcrane added this to the Presentation 4.0 milestone Jan 30, 2024
@tomcrane tomcrane changed the title Targeting specific 3D regions of a scene. Targeting specific 3D regions of a scene Jan 30, 2024
@azaroth42
Copy link
Member

Other possible approaches could include:

  • Sphere, given a central point and a radius (and impossible with POLYGONZ)
  • Cuboid, given two points (top front left, bottom back right)
  • Cuboid, given five points (x,y,w,h,+depth)

POLYGONZ seems like the most flexible and most standardized. We should determine if Sphere is a use case or not.

@azaroth42
Copy link
Member

I think this is ready for eds, although not discussed directly, the only concerns were around arbitrary segmentation of geometries

@azaroth42 azaroth42 added the Ready-for-Eds Editorial changes ready for Editorial review label Jan 31, 2024
@glenrobson
Copy link
Member

glenrobson commented Feb 21, 2024

We discussed this in the European timed 3D update and there were concerns raised about the complexity of working out the coordinates required for a POLYGONZ target. Particularly if you are painting hundreds of canvases into a scene.

Reading the spec at the moment it is easy to read that this is the only way to paint canvases into scenes and I think the more common case of painting a canvas into a scene and then using transforming and scaling is lost as the only example is the PLOYGONZ. It may help to include the diagram mentioned in the text and possible a subheading for the POLYGONZ mentioning its only required if you want to skew the image.

From further disucssion in the meeting it seemed like POLYGONZ option is an edge case and there are questions on how oftern a user would want to preform these skewing on images. It might be useful to include a use case for when you might want to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3d presentation Ready-for-Eds Editorial changes ready for Editorial review
Projects
None yet
Development

No branches or pull requests

3 participants