GraphiteEditor / GraphiteEditor/Graphite
Vello renders image with a half-pixel offset
- Ngôn ngữ chính
- Rust
- Star
- 27.2k
- Fork
- 1.3k
- Merge trung bình
- 20 giờ 5 phút
- Pull request đã merge (30 ngày)
- 57
Mô tả
Drag an image into the viewport and view it at 100% scale. Toggle the Vello renderer on and off. Notice that it shifts down and left when Vello is active, and that it becomes blurry in the Vello version because anti-aliasing is applied to do the shifting. Also at slightly different from screenspace-aligned integer scales, we have the bottom and right edges wrap and appear as a 1px strip along the top and left edges.
https://github.com/user-attachments/assets/8e4a4916-61ca-49c5-aed5-062d72cbc271
My hypothesis is that between SVG and Vello, one assumes pixel coordinates are at the center of a pixel vs. the top left of the pixel.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Tái hiện sự cố bằng cách kéo một hình ảnh vào viewport, xem hình ảnh ở tỷ lệ 100% và chuyển đổi renderer Vello. So sánh các đường dẫn rendering SVG và Vello, tập trung vào các quy ước về tọa độ pixel và hành vi ở các tỷ lệ gần số nguyên. Được xem là hoàn tất khi hình ảnh vẫn được căn chỉnh và sắc nét, không có các dải cạnh 1px bị cuộn lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- rust
- Lĩnh vực
- computer-graphics
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100