Page 1 of 1

Pixel perfect textures

Posted: Fri Jan 11, 2019 10:27
by Acid147
GUI textures like the hearts are distorted, I think it's a problem with texture scaling.
Screenshot from 2019-01-11 11-24-49.png
(7.82 KiB) Not downloaded yet
Is it possible to set the scaling to 2x, so that every pixel in the texture has the same size?

Re: Pixel perfect textures

Posted: Fri Jan 11, 2019 17:49
by Krock
Welcome to the Minetest forums!

Did you check out the Advanced Setting dialogue yet? There's also a documentation of the possible settings here: ... nf.example
In this case you're probably looking for the setting hud_scaling = 2 , although more than just the hearts might be way too big. The scaling algorithm is far from perfect and has been an issue a few times already.
Installing a 32px or 64px texture pack might give it a better appearance.

Re: Pixel perfect textures

Posted: Fri Jan 11, 2019 18:39
by Acid147
Setting hud_scaling to 1.35 seems to give me correct results on my custom game. Changing the value from the options menu doesn't seem to affect the MineTest game.

Although this should work for now, it doesn't really feel like a clean solution. A value of 1 shouldn't rescale the textures at all, right?

On Windows, manually setting the DPI fixed this issue, but this isn't possible when using X11.