Page 1 of 1

a glitch when drawing lines in Love 2D

Posted: Tue Jun 19, 2018 1:30 pm
by DarkShroom
Hi

I get a glitch when drawing lines in Love 2D which i think happens when the points are too close?

Image

Image

this is going through a shader and a trail render, but you can see the glitch without this to

does anyone have a strategy for avoiding this glitch? oddly enough, notice in my logo code it actually glitches in a perfect pentagon!?!?

many thanks forum, Richard

Re: a glitch when drawing lines in Love 2D

Posted: Tue Jun 19, 2018 1:40 pm
by Nixola
Try using love.graphics.setLineJoin("bevel") before drawing those lines to see if it fixes the issue. Could you share a .love file anyway, to see if it's reproducible on other systems? I do remember having a similar issue.

Re: a glitch when drawing lines in Love 2D

Posted: Tue Jun 19, 2018 4:56 pm
by DarkShroom
Nixola wrote: Tue Jun 19, 2018 1:40 pm Try using love.graphics.setLineJoin("bevel") before drawing those lines to see if it fixes the issue. Could you share a .love file anyway, to see if it's reproducible on other systems? I do remember having a similar issue.
unfortunately i don't have one yet, best might be i come back and drop a code example as a single file

there are so far about 13 source files in my project, it's not organised to that state just yet

no bevel did not make a difference, i think i have to figure some way of not drawing lines when they are close together


i am not too bothered yet, just thought incase someone already knew, programmer mentality... btw also it's not caused by the shaders i didn't get to disabling for the screenshot