Joined
·
831 Posts
I found this: http://web.archive.org/web/20070624082603/www.hiend3d.com/smartflt.html while searching about HQ2X algorithm.
This is smart texture filtering. Basically, it takes each block of 4 texels and filters it differently depending on its pattern, in order to keep borders sharp and achieve smoothness inside the borders. There are 14 possible patterns:
Pattern 0: linear/bilinear/whatever smoothing on the 4 pixels
Pattern 1: smoothing on the top pixels, smoothing on the bottom pixels
And so on...
Here are the results with different filtering methods:
Nearest filtering:
Bilinear filtering:
Smart filtering:
I thought it may be interesting to implement a filtering method like that, which can work on any image size, on DeSmuME's window, rather than all those filters which only work with fixed sizes (like HQ2X, HQ3X, HQ4X...).
And maybe later on it can get implemented in the Soft rasterizer, who knows...
Your opinions are welcome.
This is smart texture filtering. Basically, it takes each block of 4 texels and filters it differently depending on its pattern, in order to keep borders sharp and achieve smoothness inside the borders. There are 14 possible patterns:

Pattern 0: linear/bilinear/whatever smoothing on the 4 pixels
Pattern 1: smoothing on the top pixels, smoothing on the bottom pixels
And so on...
Here are the results with different filtering methods:
Nearest filtering:

Bilinear filtering:

Smart filtering:

I thought it may be interesting to implement a filtering method like that, which can work on any image size, on DeSmuME's window, rather than all those filters which only work with fixed sizes (like HQ2X, HQ3X, HQ4X...).
And maybe later on it can get implemented in the Soft rasterizer, who knows...
Your opinions are welcome.