Textured Polygons for All!

Showcase your libraries, tools and other projects that help your fellow love users.
grump
Party member
Posts: 388
Joined: Sat Jul 22, 2017 7:43 pm

Re: Textured Polygons for All!

Post by grump » Wed Jun 06, 2018 5:02 pm

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.

User avatar
molul
Party member
Posts: 255
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Re: Textured Polygons for All!

Post by molul » Sun Jul 22, 2018 10:35 am

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests