Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose pixel snapping settings add pixel-art notes #88456

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Expose pixel snapping settings add pixel-art notes #88456

merged 1 commit into from
Feb 20, 2024

Commits on Feb 17, 2024

  1. Expose pixel snapping settings add pixel-art notes

    This small in-engine documentation change aims to make it easier to
    discover ways to handle pixel art aesthetics.
    
    - I have moved 2D pixel snapping settings out of "Advanced." This now matches other pixel-art-friendly settings for
    GUI Snapping and Default Texture filtering.
    - I've added notes to the project settings and Sprite/AnimatedSprite sources to hint users towards better understanding of why pixelated sprites may not work correctly and what to do about it. This should help users make informed decisions for their needs.
    
    Context: Proper handling of pixel art in Godot is routinely frustrating for new users: I, like others, assumed that Godot would act on pixels, not subpixels, when I was working a pixel art game. I was confused when my interpolations would appear blurry, and when pixel textures would be distorted for no apparent reason (this was because of centering).
    I had naively thought that setting Linear interpolation would be the single "it's a pixel art game" toggle, but that only hid the underlying issues until later. I had no idea there was a snap-to-pixel option because it was hidden in the Advanced options, since my default assumption was that a pixel art game would want no subpixels at all.
    
    Some references for the frustration:
    
    - #82696
    - https://www.reddit.com/r/godot/comments/fah25e/best_way_to_achieve_pixel_perfect_rendering/
    - https://shaggydev.com/2021/09/21/project-setup-for-pixel-art/
    sabslikesobs committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    3475156 View commit details
    Browse the repository at this point in the history