Properties of a Sprite

Hello.

I started with the development of my first game in unity 2d, but I have a lot of doubts which I think this is the first that came to me.

I go: What is the difference between the Filter mode (point, bilinear and trilinear) with texture types Sprite, as I read the manual but did not understand the difference regarding its use. Besides, it is convenient to use Mip maps (is that these are used for resolution textures 64x64, 128x128, 512x256, etc), since most of my textures are those resolutions (I used to use the Unreal Engine) but not if this affects the Filter Mode, Filter mode or the mip maps.

I wanted to know which is the best format to import an image, I’m currently using the TARGA format and uncompressed 32-bit RLE.

Thanks in advance. (Translated with Google Translate xD)

The filter mode will effect the Image quality.
Its a trade-off between rendering time and image quality.
For mobile development, we just leave it to Bilinear. Point filtering
will usually not look good(which is expected) and Trilinear
is more expensive than Bilinear

You can read up more here :

For images we simply use .PNG files for mobiles and as such I don’t think
there is any noteworthy difference in file formats when it comes to Unity.

The only thing you might want to consider is the texture format settings because
this can effect the storage size.

1 Like

Thanks for the help, read the link and help me a lot :smile:.

Basically point filtering is fast if you dont need any zooming/scaling and have 1 pixel in the texture map to 1 pixel on the screen. If you need to stretch the image/zoom it a bit, or position it at floating point coordinates, then you need at least bilinear. Then if you zoom a lot, or rotate in 3D, then trilinear is better (plus anisotropic filtering).

Point sampling reads 1 texture sample per pixel.
Bilinear has to read 4 texture samples per pixel, although it’s somewhat cached.
Trilinear has to read 4 samples from two mipmap textures and then cross-fade them.

2 Likes

Thanks again, wonderful and helpful. :smile:, now i using bilinear but in last version change to Trilinear.