Scaling & Bilinear filter

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.
Post Reply
Chman
Prole
Posts: 4
Joined: Sun Nov 09, 2008 7:16 pm

Scaling & Bilinear filter

Post by Chman »

Hi,

I'm currently playing around with Löve as I'm looking for something new for my future little game. So far it's great !

Quick question though : is there a way to choose the scale filter used ? Right now if you scale an image or an animation, it's smoothed, which I don't want.

Second question : is there a way to scale the global scene ? Like, for example, rendering everything to an image, scale this image and display it ?

My game is a tiny pixel-shooter and I'd like to add a 2x & 4x size option (to give you an idea, a character is 13 pixels tall at max).

Thanks :)

Tom
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Scaling & Bilinear filter

Post by rude »

You can't set the scale filter, sorry. I'll add it to the task list, though.

As for scaling the whole scene, you can use the undocumented love.graphics.scale( sx, sy ), but note that I haven't really tested it.
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Scaling & Bilinear filter

Post by Gunroar:Cannon() »

Sorry for bumping but look how far everything 's come :crazy: :)
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
zorg
Party member
Posts: 3435
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Scaling & Bilinear filter

Post by zorg »

then don't? at least not without giving constructive feedback, which in this case is kind of hard? :roll:
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Scaling & Bilinear filter

Post by Gunroar:Cannon() »

Just thought it was cool to see, saw this while searching and seeing it wasn't really useful since it was from 2008 and scale was untested. Nostalgia you know.
Though I kind of knew I would get ... clapped :cry:

Would have posted this in GENERAL,
couldn't...
...

But sorry.
Image
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 19 guests