1
General Discussion / Scaler for pixel art
« on: April 05, 2013, 01:33:18 pm »
On the Allegro programming forums, user Siegelord made a pixel shader for upscaling pixel art.
It's nothing like all the interpolating algorithms (eagle, 2xsai, hq3x..), on the contrary it's something so simple that I'm surprised nobody did it before.
To quote user Pkrcel, "You are basicaly interpolating only at the "borders" of the scaled pixel ".
It's designed for up-scaling at arbitrary sizes, for example to resize a low-res game's window without being constrained to specific factors.
Thought this could interest some pixel-friendly coders here. Siegelord's test program is made with Allegro 5, but the shaders themselves are in glsl and hlsl - and their source is public domain.
It's nothing like all the interpolating algorithms (eagle, 2xsai, hq3x..), on the contrary it's something so simple that I'm surprised nobody did it before.
To quote user Pkrcel, "You are basicaly interpolating only at the "borders" of the scaled pixel ".
It's designed for up-scaling at arbitrary sizes, for example to resize a low-res game's window without being constrained to specific factors.
Thought this could interest some pixel-friendly coders here. Siegelord's test program is made with Allegro 5, but the shaders themselves are in glsl and hlsl - and their source is public domain.