Page 1 of 1
Pixel-art scaling
Posted: Tue May 29, 2012 10:39 pm
by nkorth
I got my pixel-art game to scale cleanly to higher resolutions, but I was wondering: has anyone implemented scaling algorithms like scale2x, 2xsai, or hq2x in Löve?
Re: Pixel-art scaling
Posted: Wed May 30, 2012 12:49 am
by Jasoco
Actually, Mari0 (A project I'm sure you've heard about by now, go to stabyourself.net to check it out) has some PixelEffects files that do a bunch of cool stuff. One of them was HQ2X I believe. It's completely possible using Effects/Shaders and Canvases.
Re: Pixel-art scaling
Posted: Thu May 31, 2012 9:50 am
by Lafolie
If you're into this kind of stuff, this link is really interesting:
http://research.microsoft.com/en-us/um/ ... /pixelart/
Re: Pixel-art scaling
Posted: Mon Oct 27, 2014 4:54 pm
by FlorinC
nkorth wrote:I got my pixel-art game to scale cleanly to higher resolutions, but I was wondering: has anyone implemented scaling algorithms like scale2x, 2xsai, or hq2x in Löve?
I'm not really keen in bumping old topics, but this is exactly what I wanted to ask about, so I'd rather post here.
I implemented such an algorythm (more precisely the Scale2X) in as3 for a game that I'd like now to port to LÖVE. It was relatively slow, so I never tried doing it with HQX because that is even more complex and requires more computations.
If anyone is interested, I can post the source for that, but
I was wondering if someone did already implemented the HQX algorythm as a shader.
I have little experience with shaders, but I'll give it a go if no one else did. I suspect they are considerably faster than AS3 implementations, so then, worth implementing.
Re: Pixel-art scaling
Posted: Mon Oct 27, 2014 9:32 pm
by kikito
Re: Pixel-art scaling
Posted: Mon Oct 27, 2014 9:43 pm
by FlorinC