Smoother, better lines from ofPolyLine?

I’m trying to get this to work on an iPad, so perhaps it should be under iOS, but it seems to be a problem on my desktop as well.

The lines drawn with ofPolyLine seem to have some serious artifacts. I’m using curveTo, in case that’s relevant. Other than that it’s just following the mouse position when clicked. I’ve read that a shader might be necessary, but I’m not really sure how those get implemented for lines. Any guidance is appreciated.

Hi, I use to avoid those artifacts.

1 Like

that is a bit better. thanks! do you use the polyToMesh method?

Yes, this one:

void ofxPolyToMesh(ofMesh & mesh, const ofPolyline & polySource, float normalLength);

I have used (some time ago)