Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Sprite scaling disable interpolation/smoothing

Author
Message
CoreGrid
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 12th Mar 2017 06:31
So i have a sprite that is 16*16 and i upscale it 20 times to 160*160, however the sprite gets fuzzy/smoothed.
But i want it to remain sharp is there some way to disable the interpolation/smoothing/aliasing?
I can't really find out how to disable this, im using tier 2.
Ranietz
AGK Gold Backer
20
Years of Service
User Offline
Joined: 2nd Sep 2004
Location: Norway
Posted: 12th Mar 2017 11:45
I haven't used tier 2 before but in tier 1 you can use SetDefaultMagFilter( 0 ) and SetDefaultMinFilter( 0 ) before you load any images to disable the smoothing.
If you want to set smoothing on or off for each image you can use SetImageMagFilter( imgId, 0 ) and SetImageMinFilter( imgId, 0 ).
CoreGrid
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 12th Mar 2017 19:09
This is what i have been looking for thanks!

Login to post a reply

Server time is: 2024-11-22 09:34:22
Your offset time is: 2024-11-22 09:34:22