## Textured Polygons for All!

grump
Party member
Posts: 363
Joined: Sat Jul 22, 2017 7:43 pm

### Re: Textured Polygons for All!

molul wrote:
Wed Jun 06, 2018 4:24 pm
1.- I'm using the setRepeat function to make an endless animation (see attached sample), but I'm getting a serious flickering I can't seem to fix even with really high msaa values. Is there anything I else I could try to fix it or at least make it much less annoying?
Increase anisotropy.

Code: Select all

love.graphics.setDefaultFilter("linear", "linear", 2)
Don't put lines at the edges of the texture. Shift the texture by half a tile.
I don't know if love generates mipmaps, if it doesn't, you can't get entirely rid of the flickering.

Edit: there's a flag for mipmapping, try setting that to true.

molul
Party member
Posts: 235
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain

### Re: Textured Polygons for All!

Oops, I forgot to thank the last post ^^U Thanks, it really helped

I have a question about this module: I'm using a grid texture, and if I don't do love.graphics.setColor(1,1,1,0) (I'm on 11.1) it will draw a white solid color instead of the grid. Does it make sense? Should I do it in another way?

### Who is online

Users browsing this forum: No registered users and 4 guests