The Daily Click ::. Forums ::. Klik Coding Help ::. Bilinear Interpolation
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
3rd May, 2015 at 03/05/2015 12:32:47 -

A while ago someone criticized MMF2 users for not including a display option for bilinear interpolation in pixel art games. It's not something I personally am fond of, but is it even possible to do this in MMF2?

 
Image

Tell 'em Babs is 'ere...

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
5th May, 2015 at 05/05/2015 16:39:30 -

There might be a shader that can do it. I know there is an option with Direct X8/9 builds to have the display anti-aliased. Perhaps there are commandline switches that can control it and you could have a launcher?

 
n/a

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
11th May, 2015 at 11/05/2015 04:01:42 -

i recently modified a shader so it could be applied to the entire frame, but the coder needs to do some maths to set the offset. (without the offset, the image resizes from the top left only)

original: http://community.clickteam.com/attachment.php?attachmentid=11142&d=1384428011
patch: http://www.mediafire.com/download/rfj8c62kyrzcvbq/upscaler_v16_patchonly.zip

the patch modifies the antialiasing upscale, it adds the parameters fViewportX and fViewportY, they are a factor of the input image size.
a value of 0.5 moves the final image 50% from the top left edge. A negative sign seems to be needed depending on if you're scaling up or down.

Edited by Airflow

 
n/a
   

Post Reply



 



Advertisement

Worth A Click