processing / processing/processing4

Cursor translucency problem?

Ouverte
#814 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug core has attachment
Langage dominant
Java
Étoiles
494
Forks
183
Merge moyen
4 h 39 min
PR mergées (30 j)
3

Description

Created by: lenrik1589

Description

Inconsistent blending of cursor image when using translucency in the image

Expected Behavior

Using cursor(img, x, y) and exporting the image and using it with X should produce same visual result

Current Behavior

System:
Screenshot_20231219_125123
Screenshot_20231219_125452
P2D:
(colored sections are 100/255 alpha) Screenshot_20231219_125105
(colored sections are 10/255 alpha) Screenshot_20231219_125427

Steps to Reproduce

  1. create image with translucency
  2. apply using cursor(img, x, y)
  3. observe how translucent colors interact with the backdrop
  4. export the image.save(file)
  5. create left_ptr using xcursorgen
  6. import as a cursor into the system and apply
  7. observe as cursor now blends differently with the background

(might include code a little later, when come home)

Your Environment

  • Processing version: 4.3 (imported through gradle as implementation("com.github.micycle1:processing-core-4:4.+"))
  • Operating System and OS version: Linux (gemeric arch, kernel 6.6.7)
  • Other information:
    • Wayland Plasma 6.0 Beta 1
    • kwin 5.90.0
    • Xwayland 23.2.3-1
    • mesa 23.3.1
    • Java: 21

Note: the discrepancy existed even when i was using a native x11 session with stable Plasma 5 and processing 3.5 in the processing editor

IIRC there might be a workaround, of using a different renderer, but i can not use it as i found no way to consistently resize a window after initialization or programmatically close other windows (produced by the same program but different PApplet) with anything other than P2D or P3D as i currently use reflection to gain access internal resize method and ((PSurfaceJOGL)surface).finish() ((GLWindow)surface.native).dispose() to close windows

(the older version of description
particularly,
i am running into issue that using P2D (xwayland + opengl) as the renderer for all my sketch windows and other graphics, my custom cursor (using cursor(img, hotspotX, hotspotY)) seems to render incorrectly compared to cursor theme made by exporting the same images as png files, and assembling into a xcursor image to be used with the system
)

Possible Causes / Solutions

It might be a discrepancy between how OpenGL and KWin handle cursors

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par reproduire le problème avec Processing 4.3, le moteur de rendu P2D et cursor(img, x, y) dans l’environnement Linux indiqué. Comparez le curseur translucide à l’image exportée assemblée avec xcursorgen, y compris les différents exemples d’alpha. Le travail est terminé lorsque le curseur dans le sketch et le curseur système se fondent de manière cohérente avec l’arrière-plan.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
computer-graphics, desktop
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.