Deformed sprite - pixel art

Godot Version

4.5.1. stable

Question

Hi everyone !

I’m having troubles with deformed sprites. Regarding project settings, I use :

640*320
(Override 1920*1080)
(Mode fullscreen)
Stretch mode viewport
Aspect keep
Scale 1
Scale mode integer

Default texture filter nearest

Here is an example of the distorsion :
(the character’s face is NOT supposed to sag on one side ^^)

Any ideas ?

Thank you very much for reading <3

Try disabling VRAM compression in import settings for the sprite texture.

Thank you for answering !
Didn’t work though :confused:

What exactly did you do?

What does the original images look like? It seems like you’re using sprites with different “pixel” sizes (that is, the pixel grids on the sprites aren’t the same size)

In editor :

Indeed, I am using images with different pixels sizes. Will clean up later, it’s from an asset pack then quickly transformed for more contrast. It’s not a bug :wink:

I went on the character asset, in the import tab, and in the Detect 3D (last part), turned it “disabled”. It’s the only part I saw with VRAM mentioned ?

Set it to “lossless” and click the “Reimport” button.

Sorry for the delay !
It is already set to lossless. Plus, it doesn’t show in editor, it’s in game only. An import problem would show in editor too, no ?

Right, it’s likely the scaling problem then.

Could you please elaborate on that ? I doubled checked the projects settings that were causing troubles in other projects and don’t understand what you mean…

Can you post the original image and the bugged image side by side?

Here, to the left extracted from the game playing (mesured as 78x111 - supposed to be 78x114, the posture doesn’t change the total height)
To the right the original one from aseprite resized x3 (mesured as 78x114)

Same picture, x4 to see better if it’s needed

Looks like different animation frames.

Yes, it is indeed, but it fits in the same space. You want the same frame ?

Yep. Easier to see what exactly is happening.

Here you go :3 Thank you for taking time on my issue

Alright ! My mate solved it.
So it was in the options for the sprite, in “offset”, just uncheck “centered”. Reposition your sprite accordingly.
Then uh… It works. Magic.