how do i turn off antialiasing?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
how do i turn off antialiasing?
i'm making a game with low resolution graphics but the graphics are all blurry
Re: how do i turn off antialiasing?
Look at [wiki](Image):setFilter[/wiki]; set the filter to "nearest" for every image, right after you load them, if you're drawing them directly.
A better way would probably be this though: create a small [wiki]canvas[/wiki] (something like 320x240, depending on the resolution/aspect ratio you want), set its filter to nearest, draw everything there and then draw and scale the canvas itself.
A better way would probably be this though: create a small [wiki]canvas[/wiki] (something like 320x240, depending on the resolution/aspect ratio you want), set its filter to nearest, draw everything there and then draw and scale the canvas itself.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
- Party member
- Posts: 107
- Joined: Wed Oct 15, 2014 5:00 pm
- Location: Yorkshire, England
Re: how do i turn off antialiasing?
Think you can set "nearest" as default, love.graphics.setDefaultFilter("nearest", "nearest", 1) in love.load.
Code: Select all
if not wearTheseGlasses() then
chewing_on_trashcan = true
end
Re: how do i turn off antialiasing?
Oh yeah, you definitely can, I forgot about that. Good catch!
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: how do i turn off antialiasing?
is it possible to turn it off on text?
- slime
- Solid Snayke
- Posts: 3181
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: how do i turn off antialiasing?
Yep, [wiki]Font:setFilter[/wiki] (and Fonts are affected by setDefaultFilter as well).
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 6 guests