0
\$\begingroup\$

I have two texture atlases: 1 is 1024x1024 (mostly used for GUI elements), the other is 2048x2048 (for game objects like characters).

I used Texture filter mip map linear on them. But when the textures (GUI textures) show up on my phone, they are blurry and vaseline-ish. The bigger textures (found on the 2048x2048) show up much more pristine and sharp.

How do I get the GUI ones to show up sharp? Do I simply have to make the textures large? If I do, wouldn't having two different 2048x2048 textures cause performance issues on an average phone?

\$\endgroup\$
  • \$\begingroup\$ Memory issues maybe, but I don't think it will affect the performance \$\endgroup\$ – Bálint Feb 16 '18 at 0:23
  • \$\begingroup\$ What size are your assets being displayed on the phone, versus what size are they in the atlas? If the ratio between them is fractional (and especially if it's not a power of 2), you'll get blurring even if you double the texture size, since the samples will still fall in-between texel sites. \$\endgroup\$ – DMGregory Feb 16 '18 at 1:42
  • \$\begingroup\$ Are the GUI textures compressed? Typically GUI textures are less suited to compression than character or scenery textures, and will suffer more from compression artefacts. \$\endgroup\$ – Maximus Minimus Feb 16 '18 at 3:40
  • \$\begingroup\$ @DMGregory The assets (in the 2048 texture) are scaled down quite a lot (they are divided by 20). Could changing the viewport size fix the issue? \$\endgroup\$ – Erick Adam Feb 16 '18 at 3:52
0
\$\begingroup\$

I dont know if it was the case, but once i have a similar problem. I was embeding a libgdx game on iframe, and the canvas was being created with a lower resolution. It was not taking the apropriate devicePixelRatio. Eg: in a motoG device the canvas was created with 360px instead of 1080px.

| improve this answer | |
\$\endgroup\$
  • 2
    \$\begingroup\$ It's not clear: are you trying to propose a solution to the issue or are you stating that you had a similar problem but could not find a solution? \$\endgroup\$ – Vaillancourt Jun 16 '18 at 3:08

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.