Page 1 of 1
Pixel Art and anti-aliasing
Posted: Wed Jan 30, 2013 2:08 am
by delcore92
Hello i have some pixel art that is 8x8 and i wish to have it scaled up. my problem is when the image is scaled the pixels are blurred. i want to achieve a nice crisp blocky look. If anyone could help me that would be great
Re: Pixel Art and anti-aliasing
Posted: Wed Jan 30, 2013 2:35 am
by slime
Re: Pixel Art and anti-aliasing
Posted: Wed Jan 30, 2013 2:52 am
by delcore92
Thank you! The problem is solved !
Here's the solution :
Code: Select all
function love.load()
love.graphics.setDefaultImageFilter("nearest", "nearest")
ship = love.graphics.newImage("images/spaceship.png")
end
Re: Pixel Art and anti-aliasing
Posted: Wed Jan 30, 2013 10:02 am
by kikito
Also consider using integer coordinates (with
math.floor) when you draw the ship on the screen. If you use raw float values, you might get "pixel artifacts" - the pixels of the image will "change" while the ship moves.