Page 1 of 1

Mipmapping

Posted: Sat Mar 08, 2014 6:55 pm
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.

Re: Mipmapping

Posted: Sat Mar 08, 2014 7:00 pm
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.

Re: Mipmapping

Posted: Sun Mar 09, 2014 1:18 am
by Bonfires Down
Thank you! I put it at 0 and now it looks much better. :awesome: