processing / processing/processing4

Pixel Density applied to all renderers (PGraphics)

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
494
Forks
183
Avg merge
4h 39m
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Processing 4.4.10 on Windows 11 using an OpenGL sketch with pixelDensity() on the main renderer and an offscreen PGraphics. Trace how pixel density is propagated to PGraphics, then verify that the offscreen buffer can use a density independent of the main renderer and can be shared as a texture.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.