Skip to content

Handling large images #360

@kushalkolar

Description

@kushalkolar

Currently it is not possible to display images by using a Texture from an array larger than [8192, 8192], which seems to be a WGPU limitation:

Uncaught WGPU error (Unknown):
InvalidDimension(LimitExceeded { dim: Y, given: 9000, limit: 8192 })

I see a few potential ways to get around this:

  1. Create a LargeImage class that stitches together pygfx.Image
  2. Within pygfx.Image, use a single grid geometry with tiled textures if that's possible?
  3. Get the indices of the data that are currently visible in the canvas, if it is larger than 8192 in any dimension then subsample the Texture data. If it is a zoomed-in view that is under 8192 then update the Texture data with the full data.

Is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionSomething to discuss

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions