13

I see lots of games with smooth edges characters and high res images, however when I try to reduce images to say 64x64 for my character I just get a pixelated mess. even if I start with a 64x64 canvas I get pixelated edges.

Should I be scaling with OpenGL? or is there some technique perhaps with photoshop or pixen that I am unaware of?

Anko
  • 13,393
  • 10
  • 54
  • 82
Rhys
  • 273
  • 1
  • 7

1 Answers1

27

Sounds like the scaling algorithm you're using isn't interpolating pixels.

Pictures are best explained with pictures:

scaling an image with different interpolations

It's the Major, first in full, then scaled down with Lanczos (left) and nearest-pixel (a.k.a. no interpolation) (right) to two sizes.

The same comparison, in 3x magnified:

detail view

Make sure the scaling you're using is resampling sensibly. For example, ImageMagick has a -filter Lanczos option.

It doesn't even need to be fancy Lanczos, in case your tools can't do it; cubic (leftmost) looks the same to me:

cubic on the left

Anko
  • 13,393
  • 10
  • 54
  • 82