Draw smooth line. Jitter.gl.mesh line thickness discontinuity.

    Mar 08 2017 | 9:31 pm
    I was looking for a simple way to display a buffer which contain waveforms (LUT) in 2D. I thought that a good way will be using open GL:
    jit.buffer => output audio buffer as matrix
    jit.expr => create a new matrix from the jit.buffer output (in[0],dim[0],0)
    jit.gl.mesh => create object in draw mode "Gl_Line_Strip"
    This allow me to modify the line thickness and to apply texture to the object.
    However the line thickness parameter produce discontinuities the problem is explain here: https://forum.libcinder.org/topic/smooth-thick-lines-using-geometry-shader
    It seems that it's possible to draw smooth line with thickness using a shader. Is there a simple way to implement this in max with jit.gl.shader ?
    What are my other solutions to avoid discontinuities and display my buffer smoothly ?
    Thanks for your help !
    Best regards.

    • Mar 13 2017 | 8:30 pm
      check out jit.gl.path @pathstyle ribbon