Issues

Issue #769 wontfix

Set default image filter to ("linear", "nearest")?

Kingdaro avatarKingdaro created an issue

From what I've seen, a lot of games include an "8-bit" sort of graphical style. In this case, often the user has to set the image filters so that it uses nearest-neighbor scaling when scaling up, otherwise it makes the image look blurry and unattractive.

However when scaling down, linear scaling is indeed favorable as to make sure the image doesn't look like a fragmented mess of pixel vomit.

I can understand that the logic behind making both filters "linear" by default that the image would be smoothed out, but LÖVE's scaling isn't exactly favorable going up, especially considering the common standard of "8-bit" graphical styles in indie games. Obviously you can set the default image filter yourself, but regardless, would it not make sense to set LÖVE's filter to a default that works in favor with more game devs?

Comments (1)

  1. Alex Szpakowski

    I think this might be more confusing than helpful. Many games use nearest-neighbour filtering for most things, but a lot don't.

    For many situations things will look much worse with nearest-neighbour than with linear filtering, but it will be hard to figure out why it looks bad unless you know exactly what to look for.

    For example, particle systems often use images which are often scaled larger than their original size but are expected to stay smooth. Many uses of canvases involve taking advantage of linear filtering when upscaling.

    Keeping both the minification and magnification filters as 'linear' by default is more consistent as well, and I suspect it's what most people will expect the defaults to be.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.