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?
Scaling + Tiled Spritesheet = Seams?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Scaling + Tiled Spritesheet = Seams?
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().
Look up setFilter().
Re: Scaling + Tiled Spritesheet = Seams?
Ok, thanks for the help. Setting "nearest" fixed it right up!
-Nick
-Nick
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 8 guests