Advanced Image Scaling

BigEd781

undefined method 'stupid_title' found for nil:NilC
Veteran
Joined
Mar 1, 2012
Messages
940
Reaction score
304
First Language
Dothraki
Primarily Uses
N/A
So, I was spending some time implementing the xBR set of scaling algorithms and I came across this little gem: http://forums.getpaint.net/index.php?/topic/23601-2d-image-scaling-algorithms/


Looks like I don't need to implement it now... but this program includes the xBR family as well as HQx and many other nifty scaling algorithms. To give you an idea of what xBR allows you to do, take this image:


dragon_1.PNG


Here is a typical nearest neighbor scaling next to an xBR 2x2 scaled version:


(I wish these wouldn't scale down, but I don't have time to mess with it)


dragon_NN.PNGdragon_xBR.PNG


Quite a difference. I wanted to implement this algorithm for scaling up SNES style sprites while adding a stylized look.  Figured I would share this find with anyone who hasn't found it for themselves.  Enjoy.
 
Last edited by a moderator:

Ralph

Retired Badass
Restaff Lead
Joined
Mar 8, 2013
Messages
329
Reaction score
230
First Language
Fantasy Heroics
Yay! Now we can be giants! (。・ω・。)ノ♡

 
Last edited by a moderator:

Ulrika

Ralph's babysitter
Joined
Jun 14, 2013
Messages
90
Reaction score
30
First Language
Snideness
Primarily Uses

BigEd781

undefined method 'stupid_title' found for nil:NilC
Veteran
Joined
Mar 1, 2012
Messages
940
Reaction score
304
First Language
Dothraki
Primarily Uses
N/A
 And why did you feel the need to post that?  It's not even long... at all.  Congratulations on achieving a previously unheard of level of intellectual laziness combined with a dazzling display of asshattery.
 
Last edited by a moderator:

Ralph

Retired Badass
Restaff Lead
Joined
Mar 8, 2013
Messages
329
Reaction score
230
First Language
Fantasy Heroics
She's not good at maths (ノД`)・゜・。

Please don't be mad at her! 〔°︷°〕
 
Last edited by a moderator:

Ulrika

Ralph's babysitter
Joined
Jun 14, 2013
Messages
90
Reaction score
30
First Language
Snideness
Primarily Uses
I didn't read that either. All I see is "Blablablabla" can't you put it in layman's terms?
 
Last edited by a moderator:

BigEd781

undefined method 'stupid_title' found for nil:NilC
Veteran
Joined
Mar 1, 2012
Messages
940
Reaction score
304
First Language
Dothraki
Primarily Uses
N/A
...just look at the pretty picture dullard.
 

Ulrika

Ralph's babysitter
Joined
Jun 14, 2013
Messages
90
Reaction score
30
First Language
Snideness
Primarily Uses
Yeah, I think you did something wrong, because I see the same 3 pictures. What's up with that?
 

Ralph

Retired Badass
Restaff Lead
Joined
Mar 8, 2013
Messages
329
Reaction score
230
First Language
Fantasy Heroics
*drags Ulrika away*
 

BigEd781

undefined method 'stupid_title' found for nil:NilC
Veteran
Joined
Mar 1, 2012
Messages
940
Reaction score
304
First Language
Dothraki
Primarily Uses
N/A
Do it.
 

Oscar

Manly Dictator
Joined
Dec 18, 2013
Messages
44
Reaction score
22
First Language
Engrish
Primarily Uses
Ok I've had a go, did it work are you banned?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,403
Reaction score
3,385
First Language
English
The image on the right seems to have had more than just scaling done to it when I'm looking at it up close (zoomed using a browser). The outlines are much smoother than the original. This is all part of the scaling algorithm?
 
Last edited by a moderator:

BigEd781

undefined method 'stupid_title' found for nil:NilC
Veteran
Joined
Mar 1, 2012
Messages
940
Reaction score
304
First Language
Dothraki
Primarily Uses
N/A
Ok I've had a go, did it work are you banned?
Apparently not.

The image on the right seems to have had more than just scaling done to it when I'm looking at it up close (zoomed using a browser). The outlines are much smoother than the original. This is all part of the scaling algorithm?
Well, it's scaling, just like nearest neighbor, bilinear, bicubic, etc. They're all ways to change the size of an image, but each one goes about it in a different way. The research paper I linked to was released a year or two ago. This is a relatively new method and is pretty smart about the way it performs scaling. It's much like the HQx algorithm, but it does better around lines and curves.
 
Last edited by a moderator:

BadMinotaur

You can do it!
Veteran
Joined
Mar 13, 2012
Messages
260
Reaction score
115
First Language
English
Primarily Uses
RMVXA
The way the xBR scaled image looks reminds me a lot of Dungeons of Dredmor's entire in-game look.

For reference, see the attached picture.

ss_d9be6b09534450fc0e80e0a63dc8cc507ff88588.1920x1080.jpg
 

GrandmaDeb

Modern Exteriors Posted!
Veteran
Joined
Apr 25, 2012
Messages
4,468
Reaction score
2,926
Primarily Uses
Ed, you are, as always, amazing. Merry Christmas.

And, um, thanks for posting such a great resource. Really useful. Wow. And other on topic comments.

=P
 

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,238
Reaction score
1,329
First Language
English
Primarily Uses
RMXP
Awesome find!

Thank you ^^

*hugs*
 

inflamer

Villager
Member
Joined
Feb 5, 2013
Messages
8
Reaction score
0
First Language
Portuguese
Primarily Uses
a script that does that while scaling the game to twice the size would be AMAZING.
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,450
First Language
Portuguese
Primarily Uses
i was trying to do something like that, i got one .dll but the effect was still too slow and not with the same quality as the images posted.

This would make making graphics far easier, as you could use 16bit resolution (I.E.: SNES resolution) and scale the graphics ingame without having them pixelated. this would also reduce the game size.



The effect i wanted was the HQX2 but this one still more like ScaleX2. Since i didn't find the algorithm for HQX2 i gave up.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

And (un)surprisingly, I already started developing a old project as MZ code right off from the bat. Waiting the launch anxiously...
Is there a single word I can use instead Magic Defense", but has the same meaning?
does anyone know where I could theoretically post a game i made full of copyrighted content so that I can get feedback on it

edit: not looking to make any money or anything. just want criticism
Yay! It's raining! ^.^
I decided to take part in the One Map Game Challenge. :LZSexcite:
Finished the map itself, just need to finish the actual game lol.

Forum statistics

Threads
100,667
Messages
978,290
Members
132,289
Latest member
WhateverImDrunk
Top