Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: bryoda12 on December 13, 2010, 07:13:08 pm

Title: Sprite Reducer
Post by: bryoda12 on December 13, 2010, 07:13:08 pm
In a game I'm currently making, I'm looking for an efficient algorithm to reduce a 16x16 sprite to 8x8 without just clustering every 4 pixels together because that looks like crap, It is in 4-level grayscale. does anyone have any help that they could give me for this?
Title: Re: Sprite Reducer
Post by: calc84maniac on December 13, 2010, 07:17:58 pm
So basically, you want to reduce a sprite without the loss of quality inherent in doing so. In that case, it might be a good idea to hand-draw equivalent 8x8 sprites and use those.
Title: Re: Sprite Reducer
Post by: willrandship on December 13, 2010, 07:20:40 pm
What other way would you do it? I don't mean to sound nasty, but there really isn't another way to shrink images. If you want to save space, you could take 8x8 and make each pixel 2x2, resulting in a 16x16 sprite at the quality of 8x8, but other than that there isn't really a way to do what you're talking about without doing what calc84 said.
Title: Re: Sprite Reducer
Post by: Builderboy on December 13, 2010, 07:25:53 pm
In a game I'm currently making, I'm looking for an efficient algorithm to reduce a 16x16 sprite to 8x8 without just clustering every 4 pixels together because that looks like crap, It is in 4-level grayscale. does anyone have any help that they could give me for this?

Really the only * algorithm* is to take the group of 2x2 pixels and have the number of on pixels corresponding to the shade of grey in your image.  This probably is going to make some images blurry tho, so really the best way is to redraw them or ask one of the spriters around omni to redraw it
Title: Re: Sprite Reducer
Post by: shmibs on December 13, 2010, 07:30:09 pm
yup, hand work is your best bet.

i'd be willing to take a shot, if you were to post what you want.
Title: Re: Sprite Reducer
Post by: bryoda12 on December 13, 2010, 08:00:27 pm
The game it's for is a zelda clone that I just started, and the screen is 8 by 10 sprites, so if the sprites were 8x8, it would fit perfectly on the calc, Ill post the sprites that I have right now, it's just for the outside though, if you want to try to convert them, be my guest, theres 247 of them. Im working on getting the inside ones.

http://i647.photobucket.com/albums/uu195/bryoda/zeldatiles.png?t=1292288380 (http://i647.photobucket.com/albums/uu195/bryoda/zeldatiles.png?t=1292288380)
Title: Re: Sprite Reducer
Post by: Builderboy on December 13, 2010, 08:03:18 pm
I think there is actually an 8x8 tileset for zelda floating around somewhere o.O
Title: Re: Sprite Reducer
Post by: Runer112 on December 13, 2010, 08:03:50 pm
May I direct you do this (http://ourl.ca/3529/128220)?
Title: Re: Sprite Reducer
Post by: bryoda12 on December 13, 2010, 08:10:22 pm
Oh my god, thanks, I have spent hours, well actually a couple days looking for 8 by 8 zelda sprites, excuse me while I go crap myself
Title: Re: Sprite Reducer
Post by: DJ Omnimaga on December 13, 2010, 10:45:58 pm
Hi Bryoda12 and welcome on the forums! :)

I tried to think about a way to shrink down 16x16 sprites by half without losing too much quality, for example, adding some anti-aliasing or something, but unfortunately I couldn't figure out a way to do it, not to mention it would still look weird. The only way to do it is to resize them on the computer and edit them by hand.

Or of course there are the sprites posted above (I swear there were other ones elsewhere too, though, although both seemed to look as great as each others)