Filter Problems

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

I am having a lot of trouble figuring out how to consistently turn off the filter so my pixel art isn’t blurry. I’m using the Tiled importer. I have read all the posts I can find on the subject, but obviously I’m missing something.

In project settings, there are two checkboxes for filter. Do both of these need to be unchecked for the filter to turn off? Godot does not save this setting, so I have to do this manually every time I use the program.

When I import the tileset the tiles are filtered. Examining the tiles, the flags are all off and the image is uncompressed. I tried importing a .tex with mipmaps and filter off and manually changing the resource from the .png to the .tex in every tile (undesirable, but at this point I’ll take what I can get). It sometimes appears to work in the editor, but when I run the scene the tiles are still blurry.

Is there some way to permanently turn off the filter? I have one map that is unfiltered but I’ve been unable to replicate it after many attempts. All the other maps are filtered.

There are a lot of things I like about Godot, but working with tilemaps has become very tedious.

Usually, turning off filter and gen_mipmaps in Image Loader should do the trick for pixel art (before you do this per image of course, because it’s a default option). In the options panel, make sure you uncheck the boxes on the right (really, not the left one :p).

Zylann | 2016-04-27 00:13

:bust_in_silhouette: Reply From: saguaro

I’m not sure what I was doing before, but the solution is to import a texture and change the tileset resource to that texture.

After importing the Tiled map go to Import > 2D Texture and create a texture for the tileset, uncompressed, no mipmaps, no filter. Select the tilemap node in the Editor, and through the Inspector go Tileset > Texture > Resource and change the path and filename to the .tex file.

This maps for ALL the tiles using that sheet, thankfully.