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
This commit fixes the weird blurry textures for player heads, as seen in #48
To fix the blurry images, we first need to set the requested width / height in the image constructor and also set the smoot parameter to false, which can only be set, when using the constructor.
As we just want a small part of the image (only the head), we need to scale the whole image by 16x, so that we can later extract the head with a resolution of 128 pixels, that will be scaled correctly (pixel-perfect, without smoothing).
The scaling without smoothing, seems to only work this way, as the "smooth" parameter cannot be set/changed when using another constructor/later.
Another option would be sampling the image with the PixelReader and creating a new Image with the PixelWriter by hand.
More information can be found here: https://stackoverflow.com/a/16092631
Environment info
2.1.0
java-14-openjdk
Linux triceraptodactyl 5.6.16-1-MANJARO #1 SMP PREEMPT Wed Jun 3 14:26:28 UTC 2020 x86_64 GNU/Linux
Description
The players skins are loaded, but the displayed faces are blurry.
Steps to reproduce
Actual result
The face is blurry.
Expected result:
The face should be sharp.
Screenshots
How my skin's face is displayed:

How my skin's face looks:

The text was updated successfully, but these errors were encountered: