processing / processing/processing4
rotate a texture in PShape bug not but work not
オープン
まだ誰も着手していません。
help wanted
opengl
- 主要言語
- Java
- スター
- 494
- フォーク
- 183
- 平均マージ
- 4時間 39分
- マージ済み PR(30日)
- 3
説明
Created by: matheplica
Hi, here's a bug with last Processing version :
PMatrix2D uvtr = new PMatrix2D();
textUVA = new PVector(0, 0.5);
textUVB = new PVector(0.25, 0.08);
memUVA = new PVector(0, 0.5);
memUVB = new PVector(0.25, 0.08);
void adaptTexture(){
uvtr.reset();
uvtr.translate(0.5, 0.5);
uvtr.rotate(rotText);
uvtr.translate(-0.5, -0.5);
uvtr.mult(memUVA, textUVA);
uvtr.mult(memUVB, textUVB);
sh.setTextureUV(1, textUVA.x, textUVA.y);
sh.setTextureUV(2, textUVB.x, textUVB.y);
}
Before I start to change the variable rotText like this:
ani = new Ani(this, time, "rotText", rotText+((PI/3)*sens), Ani.CIRC_OUT, "onUpdate:adaptTexture");
This part of code runs in P3 but not in P4.
There is no error message but it's append nothing.
In P3 the texture turn in the shape.
I'm on ubuntu 22.04
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供されたテクスチャ回転スケッチを Ubuntu 22.04 上の Processing 4 で再現し、その後、Processing 3 での動作と比較します。setTextureUV() 周辺のテクスチャ UV の経路と PMatrix2D の変換を追跡します。Processing 4 でテクスチャがエラーなしに目に見えて回転すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- computer-graphics
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100