processing / processing/processing4

Pixel Density applied to all renderers (PGraphics)

未关闭
#1,325 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Java
星标
494
派生
183
平均合并
4 小时 39 分钟
30 天内合并 PR
3

描述

Most appropriate sub-area of Processing 4?

OpenGL

Processing version

4.4.10

Operating system

Windows 11

Bug description

One can't set pixelDensity to PGraphics independant to main rednerer. This is problematic in case of sending the texture over network to other program (ie using Spout to share the PGraphics offscreen buffer).

Steps to reproduce this
  1. Create Prachnic

2.apply pixelDensity() to main sketch

3.pixel density gets applied to PGrahics as well and one can not set pixel density of PGrahics separately

snippet

// Paste your code below :)

void setup() {

}

void draw() {

}
Additional context

No response

Would you like to work on the issue?

I’m not sure yet

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 Windows 11 上使用带有 OpenGL sketch 的 Processing 4.4.10 复现该问题,在主 renderer 上使用 pixelDensity(),并使用一个离屏 PGraphics。跟踪像素密度如何传递到 PGraphics,然后验证离屏缓冲区可以使用独立于主 renderer 的密度,并且可以作为纹理共享。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
computer-graphics
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。