processing / processing/processing4
rotate a texture in PShape bug not but work not
未关闭
还没有人认领这个 Issue。
help wanted
opengl
- 主要语言
- Java
- 星标
- 497
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 Ubuntu 22.04 上使用 Processing 4 重现提供的纹理旋转草图,然后将其行为与 Processing 3 进行比较。跟踪 setTextureUV() 周围的纹理 UV 路径以及 PMatrix2D 变换;当纹理在 Processing 4 中能够无错误地明显旋转时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- computer-graphics
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100