You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
noSmooth() does not disable image smoothing in FX2D
Expected Behavior
Expected to disable antialiasing on images
Current Behavior
Antialiasing is still enabled
Steps to Reproduce
Make sketch using FX2D
Add noSmooth() to settings()
Draw image()
@Overridepublicvoidsettings() {
size(500, 500, FX2D);
noSmooth(); // Switching these around does not change anything.
}
@Overridepublicvoidsetup() {
// Putting noSmooth() here does not solve it either
}
@Overridepublicvoiddraw() {
background(0);
drawGrid();
image(textures.get(Editor.currentTexture), x, y, x + 200, y + 200); // Image is 16 x 16
}
Your Environment
Processing >3.4
Windows 10
Other information:
Possible Causes / Solutions
The FX2D rendering engine breaks noSmooth(). I'm hoping for a fix.
@benfry JavaFX 8 does not support disabling smoothing. The issue has been fixed recently in OpenJFX 12, but I'm not sure if Processing supports upgrading to that version.
Activity
benfry commentedon Jan 19, 2019
I think JavaFX may not support disabling smoothing, but someone would need to look into it.
barefists commentedon Feb 10, 2019
@benfry JavaFX 8 does not support disabling smoothing. The issue has been fixed recently in OpenJFX 12, but I'm not sure if Processing supports upgrading to that version.
benfry commentedon Feb 10, 2019
Thanks for the info, @barefists.
StefanH-AT commentedon Feb 11, 2019
Thanks for that!
StefanH-AT commentedon Feb 18, 2019
I don't think this is an issue regarding JavaFX. Lines and other primitive shapes don't get smoothed. This issue only regards images.