iced icon indicating copy to clipboard operation
iced copied to clipboard

Painting regression (image rotation) since last wgpu update

Open abique opened this issue 1 month ago • 3 comments

Is your issue REALLY a bug?

  • [x] My issue is indeed a bug!
  • [x] I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • [x] I have searched the existing issues.

Is this issue related to iced?

  • [x] My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Image rotation do not render correctly. Some images renders correctly and some don't. Maybe it is related to the size or aspect ratio. When it doesn't work, it seems to cut the image in smaller rectangles and rotates them instead.

What is the expected behavior?

The image rotates correctly.

Version

master

Operating System

Linux

Do you have any log output?

The same issue has been confirmed on macOS as well.

https://github.com/user-attachments/assets/a9b80600-29fe-4aeb-b61e-2e7199906e24

abique avatar Nov 07 '25 15:11 abique

Image

You can replace the earth.png image in the solar_system example with this one and you'll trigger the issue.

abique avatar Nov 16 '25 11:11 abique

With https://github.com/iced-rs/iced/commit/3e8e088cddbc1191f9bbbd8419cae1176bf054dd the image started being split up into squares that rotate independently, and with https://github.com/iced-rs/iced/commit/704144728f6c99a76f906c92c0ab600ffeec7e26 the squares started getting clipped to the shapes shown in the video.

edwloef avatar Nov 16 '25 11:11 edwloef

The bug might be in image.wgsl shader.

abique avatar Nov 18 '25 12:11 abique