Stretching Images

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Stretching Images

Post by kalle2990 »

When I'm stretching images with LÖVE 0.6.0, the image stretches with fades from one color to another, not like the colors grows by it selves. Is there a way to stop this from happening, because some images looks really odd (they are supposed to be sharp looking, not blurry...) :?
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Stretching Images

Post by osgeld »

thats caused by the filtering done in ogl ... i think theres a way to turn it off in 6 but not sure
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Stretching Images

Post by TechnoCat »

There is nearest neighbor filtering in 0.6.0
http://love2d.org/potato/Image_setFilter_1.html
Attachments
filtering.love
LOVE 0.6.0 Oct 12, 2009
(5.45 KiB) Downloaded 80 times
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: Stretching Images

Post by kalle2990 »

Thank you! :ultrahappy:
It really helped, looks much better now. I'm using it for my Gui I'm making, called "Guiddy".
The button would look odd if you couldn't see the sharp edge from white to grey, so here's a picture of what it looks like now ^^
Guiddy Button Preview (This old version has some big mistakes, ignore them)
Guiddy Button Preview (This old version has some big mistakes, ignore them)
Guiddy Button.PNG (1.13 KiB) Viewed 1990 times
Post Reply

Who is online

Users browsing this forum: No registered users and 251 guests