a glitch when drawing lines in Love 2D

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

a glitch when drawing lines in Love 2D

Post 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
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: a glitch when drawing lines in Love 2D

Post 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.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: a glitch when drawing lines in Love 2D

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests