-
-
Notifications
You must be signed in to change notification settings - Fork 70
Regression in 4.4.3: get() and set() are reading and writing from/to the wrong coordinates. #1131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @PhilipSharman, This is related to a recent change in Processing 4.4.3 where we updated the default Thanks for catching that one! |
I'm not sure that this is a bug -- or at least, the switch to setting pixelDensity by default was a breaking change. The difficulty here is that, as far as I can tell, The problem is, if you assume I think some solutions here could be to:
Either way @PhilipSharman you should be able to work around this at the moment by setting |
Hi @tychedelia and thanks for your input and thoughtful suggestions. I think matching Besides, I believe most users expect “pixels” to refer to logical coordinates ( I’d suggest keeping If necessary for advanced use, a |
For sure, it's def the right call from a default perspective. I agree that the logical/physical distinction can be pretty confusing to new users. It hurts my head constantly too! Especially when fractional scaling is involved. My concern is with the If you're okay with declaring all pixel operations to always be logical, I think the right call then would be to add a downres framebuffer and perform sampling on the GPU, always reading back into a pixel buffer that is the same as |
That seems reasonable. I'm mostly focused on how it works in user space and the low-level details are a bit over my head |
Uh oh!
There was an error while loading. Please reload this page.
Most appropriate sub-area of Processing 4?
Core/Environment/Rendering
Processing version
4.4.3
Operating system
MacOS 11.7.10
Steps to reproduce this
In v4.4.2, the color that get() reads is white, as expected. And set() draws around (350, 350) as expected. But in v4.4.3 (and v4.4.4) get() reads blue, and set() draws around (175, 175).
It appears that both get() and set() are operating on (x/2. y/2) instead of (x,y).
snippet
Additional context
No response
Would you like to work on the issue?
No
The text was updated successfully, but these errors were encountered: