Scaling without blurring

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Sosa Montana
Prole
Posts: 4
Joined: Mon Aug 17, 2015 11:35 pm

Re: Scaling without blurring

Post by Sosa Montana »

I just put

Code: Select all

love.graphics.setDefaultFilter("nearest", "nearest")
at the beginning of my love.load
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Scaling without blurring

Post by ivan »

And here is my result. You can notice a contour as well, which I do not want either (it may be a consequence of the blurring).
Sorry for necroposting but I believe there is a possible solution for the contour issue.
This works with transparent PNG images (using "indexed color").
You need to set the "matte color" to "none".
In Photoshop this is achieved by going to "Save for the web" => "PNG-8" => "Matte" => "None".
Good luck!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 27 guests