processing / processing/processing4

Issue when using a transparent stroke with vertex()

オープン
#675 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

has attachment help wanted opengl
主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供されたP2Dスケッチから始め、2.0未満および2.0超のウェイトでの透明なストロークの描画を、デフォルトのレンダラーを対照として含めて比較します。完了条件は、薄いストロークの一貫した透明性を維持しながら、頂点によって目に見えるドットが生成されなくなることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
computer-graphics
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。