Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Knox on Wed 18/08/2010 17:02:09

Title: Dynamic sprite resize and blur?
Post by: Knox on Wed 18/08/2010 17:02:09
Hi,

Im currently resizing dynamic sprites with the resize function but I feel the quality seems a bit "choppy" compared to if I did it in photoshop. I know I can just save an additional sprite with the resized one from photoshop, but Id rather save memory by redrawing + resizing than save a 2nd load of sprites, resized.

Is  there a way in AGS to somehow "mimic" the resizing of images in photoshop where it seems its much smoother/blurry than the AGS resize?


(http://www.2dadventure.com/ags/resize2.png)

**EDIT**
Does this have something to do with this thread?
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=41551.0
Title: Re: Dynamic sprite resize and blur?
Post by: Dualnames on Wed 18/08/2010 20:02:47
I think photoshop uses a filter of some sort. As far as i can tell that is. Some kind of an anti-aliasing. While AGS directly resizes the image in the same way MS Paint does. Perhaps  drawing as well above the resized sprite a blur/mosaic transparent filter?
Title: Re: Dynamic sprite resize and blur?
Post by: Khris on Wed 18/08/2010 20:46:19
Fun fact: I started writing a module for rescaling DynamicSprites using filters. Blurry resizing is sort of all set; transparency is still an issue though.

I'll put the function/module up here when I get home unless someone's faster :)
Title: Re: Dynamic sprite resize and blur?
Post by: Dualnames on Wed 18/08/2010 21:09:07
Quote from: Khris on Wed 18/08/2010 20:46:19
Fun fact: I started writing a module for rescaling DynamicSprites using filters. Blurry resizing is sort of all set; transparency is still an issue though.

I'll put the function/module up here when I get home unless someone's faster :)

YAY!! That is so great Khris!! :D. I wanted something like that for my game, to get rid off of some tedious work.
Title: Re: Dynamic sprite resize and blur?
Post by: Knox on Wed 18/08/2010 22:10:50
Nice Khris! Man oh man this will save so much work :P

You should also post your paypal information so people can forward you some $$$... ;D
Title: Re: Dynamic sprite resize and blur?
Post by: Khris on Thu 19/08/2010 03:29:28
Hehe, that's actually not a bad idea ;D

Anyway, the module is done:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=41649.0
Title: Re: Dynamic sprite resize and blur?
Post by: Knox on Thu 19/08/2010 16:51:19
sweet.... ;D