Page 15 of 15

Re: Textured Polygons for All!

Posted: Wed Jun 06, 2018 5:02 pm
by grump
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.

Re: Textured Polygons for All!

Posted: Sun Jul 22, 2018 10:35 am
by molul
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?

EDIT: apparently I can't use this shader on a Rockchip RK3066 because it's not GLSL ES compatible, but I can't seem to find what is needed to make it compatible. Any idea?