hq2x (hqx) scaling for sprites

Previous topic - Next topic

Kitty Hello

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



MrTAToad

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...

Kitty Hello

It needs some RAM. Better pre-convert the images. You can try, though.

Wampus

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.

erico

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?

Kitty Hello

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.