Page 1 of 1

Scaling + Tiled Spritesheet = Seams?

Posted: Tue Aug 28, 2012 5:38 am
by racarate
Hi everyone,

I'm trying to display a 32x32 sprite at double width. Note that this sprite comes from a 2x2 spritesheet. I am using AnAL, and when I pass a scale value (which just passes through to love.graphics.draw) I get visible seams. This doesn't happen at all at normal scale! Is there some limitation to scaling images if those images come from a tiled spritesheet?

Re: Scaling + Tiled Spritesheet = Seams?

Posted: Tue Aug 28, 2012 5:40 am
by Jasoco
You're scaling the image. It's best to scale to a whole number AND use nearest neighbor filtering. The artifacts are parts of the other adjacent tiles. They won't appear with nearest neighbor.

Look up setFilter().

Re: Scaling + Tiled Spritesheet = Seams?

Posted: Tue Aug 28, 2012 2:38 pm
by racarate
Ok, thanks for the help. Setting "nearest" fixed it right up!


-Nick