Skip to content

[3D Model] Stage views are not described #869

Closed as not planned
Closed as not planned

Description

@svinkle

Issue summary

When a 3D model is rotated, a screen reader will annouce the current stage view. Ex, "View from state right", "View from stage left." This does not help to describe the stage view for someone who can't see the 3D model. Non-visual screen reader users should have equal access to content that sighted users have access to.

Screenshots Dawn product page. A 3D model of an astronaut is highlighted. VoiceOver output contains the text, View from stage left.

Current code

HTML

<model-viewer
  toggleable="true"
  src="…"
  camera-controls="true"
  style="--poster-color: transparent"
  data-shopify-feature="1.7"
  alt="{model.alt}"
  poster="…"
  data-js-focus-visible=""
  ar-status="not-presenting"
></model-viewer>

Steps to reproduce

  1. Go to a Dawn theme store with any supported browser
  2. Navigate to a product with one or more 3D models available
  3. Activate the 3D model activator control
  4. With an active screen reader, use the virtual cursor to navigate to the 3D model and rotate using arrow keys

Behavior

Expected

  • 3D model stages announcement to describe the models visuals and attributes

Actual

  • 3D model announces the stage angle only

Recommendation

This will be a multi-team effort.

  1. Allow the merchant to upload unique descriptions per stage view in the Theme editor as "alt text." (Shopify Theme Editor team)
  2. Pass each stage description as string values to be accepted by the model-viewer component (Shopify Theme team/Google team)
  3. Announce each stage description when the stage comes into view. (Google team)

With this, the screen reader would announce,

"View from stage {angle}, {stage.alt}"

Review the post "3D Model Accessibility – Provide user-defined descriptions per stage variant" for more details.

Recommended code

HTML

<model-viewer
  toggleable="true"
  src="…"
  camera-controls="true"
  style="--poster-color: transparent"
  data-shopify-feature="1.7"
  alt="{model.alt}"
  alt-left="{model.alt.left}"
  alt-right="{model.alt.right}"
  alt-top="{model.alt.top}"
  …
  poster="…"
  data-js-focus-visible=""
  ar-status="not-presenting"
></model-viewer>

Specifications

Activity

  1. added
    Severity: 1
    Category: Accessibility
    on Nov 10, 2021
  2. self-assigned this
    on Nov 17, 2021
  3. JonathanWade commented on Nov 17, 2021

    @JonathanWade

    @elalish This is probably a bit of lift to get right and require coordination from us. Another route is to try and cram some of this into glTF metadata/XMP metadata, but thats another process. Love to discuss your thoughts on our next sync call.

  4. elalish commented on Nov 19, 2021

    @elalish

    I'd like to understand this issue better; some examples of this text for a product would help me a lot. Is the goal really to describe the model from each view with words? I'm dubious it would add much value for a blind person, but perhaps I just don't understand yet.

    One alternate idea that's been batted around from time to time for 3D rendering is to see what can be done for the larger number of visually impaired rather than the completely blind. For instance, I think a high-contrast mode focusing on the silhouette could already be achieved by setting the background dark and a high exposure, or vice versa. It would be interesting to test this with visually-impaired users.

  5. added
    Critical Path: 3
    on Nov 26, 2021
  6. svinkle commented on Nov 26, 2021

    @svinkle
    Author

    @elalish Think of a 3D model as an interactive image. All images must have alternative text, either providing a text description of the image or a null value deeming the image as decorative. In the context of a product image, the expectation would be to provide details on the product. How it looks, its physical features, whether a model is wearing/using the object and how they're using/wearing it. This helps to provide understanding of the product for visually impaired users.

    For example, this image of a hooded sweatshirt. A content designer could reasonably conclude an alternative text value of:

    Black hooded sweatshirt. Two triangles on center of chest, one larger in blue, one smaller in red, overlap to make a third smaller white triangle.

    Black hooded sweatshirt. Two triangles on center of chest, one larger in blue, one smaller in red, overlap to make a third smaller white triangle.

    A 3D model is essentially made up of many images which the user is able to manipulate and view different angles of the object, taking in even greater detail than a static 2D image. In this case, each "image" or stage of the object should be accompanied with a text alternative.

    model-viewer has a great foundation where the stage angle is announced as it comes into view. I believe this feature could be extended to include user-provided descriptions for each stage, allowing them to provide descriptive detail as required.

    In my post 3D Model Accessibility I include the example of the astronaut model. The example code includes descriptive text for specific stages which showcases how someone may describe the model for visually impaired users.

    <model-viewer
      …
      alt="A 3D model of an astronaut"
      alt-stage-front="Astronaut wears white space suit with helmet. Backpack straps wrap around its chest."
      alt-stage-left="Astronaut shoulder features space logo."
      alt-stage-back="Astronaut wears large, white backpack with black highlights."
      …
    >
      <!-- … -->
    </model-viewer>

    Again, thinking as if the model were made up of multiple static images, one could write descriptions per stage view.

    For an example output, if the astronaut model were to be viewed from stage left, a screen reader might announce:

    🗣 "View from stage left. Astronaut shoulder features space logo."

    I believe it's still important to announce the current stage as to orient the user of the current position.

    In terms of effort, I believe (and this is my limited view here) that the work involved for the Google team would be minimal. model-viewer would need a way to accept string values, then place them alongside the stage announcement string for screen reader users to consume. Most of the work will likely be on the Shopify teams; adding new fields in the editor to accept string values, storing string values, then outputting the string values at the theme level to be sent to model-viewer. That's my interpretation, anyway. 🙂

  7. added
    Severity: 2
    and removed
    Severity: 1
    on Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Category: AccessibilityCritical Path: 3Effort: HighSeverity: 2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions