Hello there everyone 🙂

I've tried to find some tutorial to help on import pixel-art withouth any kind of quality loss. There's a bunch of those for Godot 3 and prior, but almost none for Godot 4

So here am I to write out what I've found around the internet and some personal findings for importing those files and mantain their quality.

Environment

  • Godot: v4.1.1.stable.mono.official [bd6af8e0e]
  • MacOS 13.2
  • 3D project with 2D pixel art objects

Problem

After importing the pixel-art and trying to use it on a Sprite3D directly, it may look something like this

Be sure your image is fine (i.e.: not corrupted) and then set the following settings:

  • On your Sprite3D open your Texture config and then go way down to the Flags section.
  • Then set Texture Filtering to Nearest

After that, select your image on FileSystem and then go to the Import tab.

  • On Compress set Mode to Lossless

And voyalla there's how you set a crispy-looking pixel art!

Notes

By settings the compression and filtering to Lossless you'll also increase the file sizes and your project size in general. Keep this in mind while building your solution and play around with other compression methods for areas that can have a lower quality.