My question is "Is it possible to scale images without it getting blury?" And that is what i want to know! I want to know if there is a trick a workaround or whaterverthef so that doesnt happen? I tried scaling it up in intervals of integers but that didnt seem to work either... Im going for an undertale-ish apperance (I know there are other games that look like this but im going to assume that most people here are familiar with undertale) and I thougth that this is an asthetic that most other indie devs on this forum also wanted to explore this artstyle so i was shocked that noone asked this before (I think)
soooooooo.......Yeah!
(thank in advanced)
Is it possible to scale images without it getting blury?
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: Is it possible to scale images without it getting blury?
By default love uses linear filter mode when scaling images up or down, which results in a blurry image. You can change this behavior simply by setting the default like so
After setting the mode to "nearest" you can keep pixels crispy, so long you scale up in integer increments.
You can also set it per-image basis with Texture:setFilter.
Code: Select all
love.graphics.setDefaultFilter("nearest", "nearest",1)
You can also set it per-image basis with Texture:setFilter.
Re: Is it possible to scale images without it getting blury?
Thank you very much !!MrFariator wrote: ↑Sat Feb 24, 2018 10:36 pm By default love uses linear filter mode when scaling images up or down, which results in a blurry image. You can change this behavior simply by setting the default like soAfter setting the mode to "nearest" you can keep pixels crispy, so long you scale up in integer increments.Code: Select all
love.graphics.setDefaultFilter("nearest", "nearest",1)
You can also set it per-image basis with Texture:setFilter.
Who is online
Users browsing this forum: No registered users and 2 guests