GLBasic forum

Codesnippets => 2D-snippets => Topic started by: Kitty Hello on 2011-Feb-18

Title: hq2x (hqx) scaling for sprites
Post by: Kitty Hello on 2011-Feb-18
Hi,

I just copy/paste ported the hq2x project to GLBasic. You can use it to upscale sprites or the whole screen nicely. Needs a good piece of CPU power, mind.

http://www.hiend3d.com/hq2x.html (http://www.hiend3d.com/hq2x.html)


Title: Re: hq2x (hqx) scaling for sprites
Post by: MrTAToad on 2011-Feb-19
Looks good - as it would only need to be used at startup, I can imagine something like the Pre should be able to cope with it...
Title: Re: hq2x (hqx) scaling for sprites
Post by: Kitty Hello on 2011-Feb-19
It needs some RAM. Better pre-convert the images. You can try, though.
Title: Re: hq2x (hqx) scaling for sprites
Post by: Wampus on 2011-Mar-08
Thanks a lot! I was just last month looking at scaling filters and wondering what it might take to get them working in GLBasic.

Personally my favourite is 2xSaI but hq2x is awesome too.
Title: Re: hq2x (hqx) scaling for sprites
Post by: erico on 2011-Mar-08
what if you work on a quite low resolution and upscale to i-pad res? would it be any faster?
it would be great to be able to upscale things without distortion/blut(aye pure pixels), I like pixel art and 320x240 seems to be a perfect resolution. by the way, if the game is running on the background on such a res, it would take less memory and resources correct? any ideas?
Title: Re: hq2x (hqx) scaling for sprites
Post by: Kitty Hello on 2011-Mar-08
I don't think it will be fun to use in real time. You might have to test. But for pre-rendering the sprites it's fine.