The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I'm new on Godot, and I'm starting a pixel art game. I'd like to have a pixellating effect, so that the viewport doesn't show new pixels as it scales up. The game window is 480 x 270 pixels, but playing it on fullscreen makes it more fluid, which I actually don't want ^^
Is there a way to achieve that? I haven't found anything that could help me yet.

in Engine by (188 points)

1 Answer

+2 votes
Best answer

Hi,
For pixel art games, there some things you have to take care of:

1 - Reimport all your textures without filter, or with "2D pixel" preset. Just select the textures in your file system dock in the editor, go to the Import dock, uncheck filter, and click reimport.

2 - In project settings, go to Display->Window and select "viewport" in Stretch mode (at the bottom of the dialog). This makes godot render at the window resolution and the scale the result, so you only see what was intended, and the performance is a bit better.

3 - In the same Display->Window settings, select "keep" in Stretch Aspect option.

4 - In project settings, go to Rendering->Quality, and look for 2d, check pixel snap there. This makes things snap at integer pixel positions, to help you avoid subpixel distortion.

by (3,505 points)
selected by

Thanks a lot, exactly what I needed :)

glad to help!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.