#Sprites super pixelated

1 messages · Page 1 of 1 (latest)

sonic slate
#

I was trying to remake my game to use pixel art instead of normal images, but when I tried resizing it turns out like this. (He has eyes btw idk why the eyes just disappeared)

lilac sorrel
#

Changing the scale of sprites tends to deform them. It is recommended to just draw smaller sprites or to change the camera's zoom.

If you do change the zoom, keep it to something like 0.5x or 0.25x Anything in between will look off.

lilac sorrel
#

You need to add a Camera2D node and modify the stuff there, then set it's "current" property (can be done from the Inspector tab).

sonic slate
lilac sorrel
#

Oh, is the override also following the rule of 0.5 or 0.25?

sonic slate
#

Imma be honest i didnt really understand the difference between viewport and window size override

#

im still super new to godot

lilac sorrel
#

I never touched it myself, so i'm not too sure either lol

Viewport should be the resolution. The Window override should be the actual window size of the game (unless it is fullscreen).

Depending on the "Mode" the game will be stretched/resized/etc to fit the window.

#

Wait, no. That's a different "Mode". I know there was a setting to change how the game fits the window.

sonic slate
#

does that mean the window is based off the viewport size or the override size?

lilac sorrel
#

Many settings have tooltips

#

I honestly never read this one before.

#

Apparently "viewport" is recommended for pixel art. So that should be ok.

sonic slate
#

okay...

#

so why is my sprite super pixelated and deformed

lilac sorrel
#

Try changing Scale Mode to integer

#

Also, in the small preview from the Inspector, does the sprite also look pixelated there? Or only in the scene?

sonic slate
#

changing it to integer has lagged my computer

#

...

lilac sorrel
#

Are you using an integrated GPU?

#

A bit of scaling shouldn't be THAT taxing.

sonic slate
#

yeah my nvidia gpu

#

like its not a big lag

lilac sorrel
#

Oh, paired with the almost 2K resolution that may be a bit too much for your GPU.

sonic slate
lilac sorrel
#

I have a dedicated GPU and my monitor is capped at 1600 width.

#

And even then i get performance issues in many 2D games.
Resolution's performance hit increases exponentially.

sonic slate
#

wait ok back to Godot why is my sprite deformed

lilac sorrel
#

About the preview, does it look ok there?

sonic slate
#

its a spritesheet that I cut down into Hframes and Vframes so it looks like this

lilac sorrel
#

hmm, try changing stuff in the Import tab.
Make sure it is set as Lossless