processing / processing/processing4

Issue when using a transparent stroke with vertex()

Aperta
#675 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

has attachment help wanted opengl
Lingua principale
Java
Stelle
494
Fork
183
Merge medio
4h 39m
PR unite (30g)
3

Descrizione

Created by: finerrecliner

Description

I'm running into a possible bug when using vertex() with a stroke that has transparency/alpha. I would expect the color to be consistent from the beginning to the end of the drawn line. Instead there are "dots" that appear at the vertices. Here is an example:

size(400, 400, P2D);
smooth(8);
background(0);
stroke(255, 60);
noFill();
strokeWeight(1.9);
beginShape();
for (int x = 100, y = 100; x < 300; x+=20, y+=20) {
  vertex(x, y);
}
endShape();

Screenshot 2023-02-20 123627

I'd like to use a strokeWeight of 1 in my project, but the issue is easier to visualize at 1.9. The issue goes away if using a strokeWeight >= 2.0, as seen here:

Screenshot 2023-02-20 130203

The issue also goes away if using the default renderer instead of P2D, but I need to use P2D for my project for additional reasons. I've tried using different strokeJoin options but it doesn't seem to change the result here.

My Environment

  • Processing v4.1.2
  • Windows 10
  • Nvidia RTX 2060 Super

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con lo sketch P2D fornito e confronta il rendering dei tratti trasparenti con pesi inferiori e superiori a 2.0, includendo il renderer predefinito come controllo. Il lavoro è completato quando i vertici non producono più punti visibili, preservando al contempo una trasparenza uniforme per i tratti sottili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
computer-graphics
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.