GraphiteEditor / GraphiteEditor/Graphite
Vello renders image with a half-pixel offset
- Langage dominant
- Rust
- Étoiles
- 27.2k
- Forks
- 1.3k
- Merge moyen
- 20 h 5 min
- PR mergées (30 j)
- 57
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduisez le problème en faisant glisser une image dans le viewport, en l’affichant à une échelle de 100 % et en basculant le renderer Vello. Comparez les chemins de rendu SVG et Vello, en vous concentrant sur les conventions de coordonnées des pixels et le comportement aux échelles proches des valeurs entières. Le travail est considéré comme terminé lorsque l’image reste alignée et nette, sans bandes de bord de 1px rebouclées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- computer-graphics
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100