Pixel-art scaling
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Pixel-art scaling
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?
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Pixel-art scaling
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
If you're into this kind of stuff, this link is really interesting: http://research.microsoft.com/en-us/um/ ... /pixelart/
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Re: Pixel-art scaling
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.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 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.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Pixel-art scaling
When I write def I mean function.
Re: Pixel-art scaling
Indeed it does. Thanks!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests