BASIC

Author Topic: hq2x (hqx) scaling for sprites  (Read 4383 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10708
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
hq2x (hqx) scaling for sprites
« 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



[attachment deleted by admin]

MrTAToad

  • Guest
Re: hq2x (hqx) scaling for sprites
« Reply #1 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10708
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: hq2x (hqx) scaling for sprites
« Reply #2 on: 2011-Feb-19 »
It needs some RAM. Better pre-convert the images. You can try, though.

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: hq2x (hqx) scaling for sprites
« Reply #3 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.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4206
    • View Profile
    • Portfolio
Re: hq2x (hqx) scaling for sprites
« Reply #4 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?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10708
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: hq2x (hqx) scaling for sprites
« Reply #5 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.