Godot: (Vulkan) 2D Pixel Import Not Working

Created on 15 Mar 2020  路  12Comments  路  Source: godotengine/godot

Godot version:
4.0 custom build f65781fe7

OS/device including version:
Windows 10

Issue description:

Importing PNG and attempting to re-import using 2d Pixel does not result in a pixel perfect texture. This problem has actually been for while now and I was waiting to report it.

Steps to reproduce:

Start a new 4.0 project. Add a new pixel like texture. Drag the Texture onto a new scene and notice how the image is blurry. Select the Import Tab. Select 2D Pixel from the drop down. Click Re import button. Notice that nothing happened to the Texture.

See video below for example.

2020-03-14_18-20-28.zip

Minimal reproduction project:

Sample project is attached.

2dpixel-vulkan.zip

documentation import rendering

All 12 comments

Filter options are set on materials now rather than on the textures themselves. Have you tried looking in the material options?

Oh?!? I did not realize that. I will try that out.

Okay. I have searched the interwebs, is there any information on how to do this? I do not see anything yet in the new Master Branch docs yet.

This is all very new and the API isn't set in stone yet. So you won't find many docs.

To set the default texture filter for a sprite, look in the Sprite's inspector > CanvasItem > Texture > Filter - set to "Nearest"

Got it Thanks. So that works great for individual sprites but does not seem to work on my tilemaps? Is there a different setting for that somewhere? I changed the same setting on the Tilemap object.

@paulhocker sorry, I don't know. I haven't spent any time with 2D.

It's too early to expect everything to work. Just be patient and things will get implemented and the docs will get written.

no worries -- i really do appreciate the help -- i will open another ticket on the tilemaps -- thanks

@paulhocker You can try changing Project Settings -> Rendering -> Canvas Textures -> Default Texture Filter. Although if you say that the local setting doesn't work for TileMaps, I doubt the global one will...

This should probably be added to the documentation.

I have confirmed that globally changing the default texture filter does not change the texture for tilemaps nor does it help changing existing ones -- as i mentioned i will be opening a separate ticket for this -- I have never done documentation before but I might take a stab at it for this one -- thanks everyone

The filter property in the Texture tab for the tilemap has no effect regardless of which option is set so it is not a problem specifically with the nearest option.

@MCrafterzz If the texture filter option has no effect on a given node, this should be reported in a separate issue (after searching for duplicates).

Was this page helpful?
0 / 5 - 0 ratings