Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ladies and Ladies..... Scale2x
#1
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!!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#2
cool
Reply
#3
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.
Reply
#4
Lachie, have you done anything with FreeBasic yet?
Reply
#5
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?
In a world without walls and doors, who needs Windows and Gates?
Reply
#6
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?!! Tongue
Reply
#7
Yes, and guts... a new game with lots of blood & guts! :lol:
Reply
#8
LOL
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#9
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 Sad

SJ_Zero exactly 30 minutes into his 1 hour unhaiatus
Reply
#10
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. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)