Pixel not correctly rendered when playing the scene

Godot Version

Godot 4.4

Question

I have this problem with my 2d project. In editor all of the pixel looks great, but when i run the scene it look worse. The following pictures is a comparison before (in editor) and after i ran the scene.
I use 1920 x 1080 for resolution, in case the resolution have something to do with it. I have also turned on nearest filter and i have tried turning on pixel snap, but the houses looked worse.

i’ve been stressing out with this for the past few days. It is small but really annoys me. Any help or reply would be really helpful




(Configuring your Godot project for pixel art - The Shaggy Dev)

1 Like

You can get this kind of thing in various ways; a slight scale can do it, for instance.

It looks like you’ve got your texture filters set to NEAREST, which is probably what you want for pixel art, but it does mean that you get this kind of error if the sprite isn’t 1:1 with the pixel grid.

Check to see if any of the houses have fractional positions in global_position; if so, consider calling floor() on them.

1 Like