Texture is looking ugly when scaled down

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sub889
:warning: Old Version Published before Godot 3 was released.

Hello, I imported the texture of a rounded square on godot (res: 256x256). To get the desidered dimension, i scale it in the editor by 0.32x0.32, but it looks bad:

Here is how it should look:

Correct me if I’m wrong, but it looks like there is no minifying filter. The doc only shows a magnifying filter.
Maybe try with mipmaps on?

Also, if your texture is always going to be that size on screen, you can scale it down in an image editor in the first place.

Zylann | 2016-06-07 12:55

:bust_in_silhouette: Reply From: ericdl

Do your sprites have the filter flag turned on? You can access the sprite’s texture properties by clicking the little greater-than symbol:

enter image description here

I tried too, but it seems the filter option only works when zooming in. Zooming out always produce artefacts.

Zylann | 2016-06-07 12:57

Yes it’s true, but I was able to see a tiny difference when applying the filter flag:

Filter off
enter image description here

Filter on
enter image description here

Perhaps sub889’s monitor resolution is such that the difference is more noticable to him. Or maybe I am totally wrong.

ericdl | 2016-06-07 13:15

Yes, filter is on, however I noticed an improvement when i select 2d instead of viewport from the project settings only on mobile (on my computer still looks bad)

sub889 | 2016-06-07 13:38

Replace with a smaller resolution file should eliminate the rugged edges.

jaydonteh | 2016-06-07 13:49