processing / processing/processing4
Pixel Density applied to all renderers (PGraphics)
Nobody has claimed this yet.
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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