Mipmapping

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Bonfires Down
Prole
Posts: 3
Joined: Tue Feb 25, 2014 9:41 pm

Mipmapping

Post by Bonfires Down »

I have been trying to get mipmapping to work but there seems to be no difference from standard rendering. Is it supposed to be applied automatically when I zoom out? What number should I put as the second argument to setMipmapFilter? My code is like this:

Code: Select all

wallNone = love.graphics.newImage('wallNone.png')
wallNone:setMipmapFilter(linear,16)
wallNoneBatch = love.graphics.newSpriteBatch(wallNone,100)
wallNoneBatch:add (0,0)
Can anyone help? The documentation is rather lacking.
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Mipmapping

Post by slime »

A larger number for the second argument to setMipmapFilter means it will use a more detailed mipmap level than it normally would. 0 is the default. So when you set it to 16, you probably won't notice a difference compared to disabling mipmapping.
Bonfires Down
Prole
Posts: 3
Joined: Tue Feb 25, 2014 9:41 pm

Re: Mipmapping

Post by Bonfires Down »

Thank you! I put it at 0 and now it looks much better. :awesome:
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests