1
\$\begingroup\$

I'm using FillViewport and OrthographicCamera. LibGDX is scaling my images rather badly - jagged edges, visible pixels. How can I change the scaling method?

by the way, I'm pretty sure the issue isn't my images. I've scaled them using imaging software and they look a lot better than when LibGDX scales them.

\$\endgroup\$
1
\$\begingroup\$

The issue is probably because of Texture Filters. And it's not LibGdx problem either, but OpenGL's.

You can set filters for Libgdx textures using setFilter() method. For eg., try setting the filter to:

yourTexture.setFilter(TextureFilter.MipMapLinearNearest,TextureFilter.Nearest);

Here's the detailed explanation written by Mario himself.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.