Scale2x is used in most Gaming Console Emulators .
Exe and source: (I intentionally did not optimize the source so that the algo would be easier to understand)
http://qh2.qbtk.com/190-d
This thing would be well suited in converting sprites from 16 * 16 to 32 * 32. Or make your sprites/tiles 16*16 and scale2x it on load then you get less filesizes in your sprtes.
Enjoy!!!
I doubt I'll ever get to see you upgrading RelLib with sprite scaling routine I so need much to finish LONG in QB?
Thought so.
Lachie, have you done anything with FreeBasic yet?
Quote:I doubt I'll ever get to see you upgrading RelLib with sprite scaling routine I so need much to finish LONG in QB?
Thought so.
Why don't you just stick on a scaling routine from eg. CosmoX and use that?
Uhm, no.
Wait, I did compiled something done by someone else. And it did do something.
Uh, I unpacked it on my harddisk. What do you want? BLOOD?!!
Yes, and guts... a new game with lots of blood & guts! :lol:
I rewrote the qfak renderer to use this for a demonstration version I'm doing for a class -- it's pretty nice, though a bit limited compared to other 2x scalers out there. Too bad it seems far too slow to actually use on anything without a fast CPU and an AGP video card
SJ_Zero exactly 30 minutes into his 1 hour unhaiatus
Actually, the scal2x algo is as fast as it could get. I intentionally did not optimize it to be more understandable. It's so fast it's used in realtime scaling in most emus including zsnes. :*)