OpenGL : thick and smooth/non-broken lines *in 3D*
<p>I have a 3D CAD-like application for which I use OpenGL wrapper library (OpenSceneGraph). For the application I am trying to come up with the best strategy on how to render <strong>thick and smooth lines in 3D</strong>.</p>

<p>By <strong>thick and smooth</strong> I mean:</p>

<ul>
<li>line thickness can be more than OpenGL maximum linewidth value (it seems to be <code>10.f</code> on my machine)</li>
<li>when composing polylines I want to avoid the look of "broken lines" (see example image below)</li>
</ul>

<p><a href="https://i.stack.imgur.com/XAK9k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XAK9k.png" alt="OpenGL &lt;code&gt;LineStrip&lt;/code&gt; looks broken, zoomed-in image "></a></p>

<p>At the moment I render my polylines by using <code>GL_LINE_STRIP_ADJACENCY</code>.</p>

<p>I found there are many different resources on how to render nice looking lines and curves in 2D. The simplest approach that does not require much thinking is to render the line as a set of quads (<code>GL_QUAD_STRIP</code>). The good thing about this solution is that it solves both of my problems at the same time.</p>

<p>As an example, I also found this <a href="https://github.com/tyt2y3/vaserenderer" rel="noreferrer">nice library</a> that allows to achieve wide range of line and curve looks. It uses triangles for rendering.</p>

<p>Note: I do not seek for fancy effects like per-vertex coloring or brush-like strokes, just <strong>a 3D line segment</strong> that can have large thickness and that connects well with another line segment without any gaps between them. </p>

<p><strong>The problem</strong> with those 2D approaches is that they are 2D. When I change the view point, it is obvious my line geometries are not lines but rather 2D "ribbons" lying in certain 3D planes. And I want them to look like 3D lines.</p>

<p>When thinking about the problem, I could only come up the the following <strong>approaches</strong>: </p>

<ol>
<li>Render line as a set of 2D quads (triangles) and then make them to always face the camera</li>
<li>Use some 3D shape like cylinder to represent a line segment</li>
</ol>

<p>I am not sure how feasible any of the two solutions are (I am beginner in OpenGL). I might have hundreds or even thousands of polylines on the scene. I am also wondering if there is a better, smarter way to approach the problem? I am open to anything and interested in the most efficient way. Thank you.</p>

<p><strong>EDIT</strong>: as pointed by user @rickyviking, I didn't clarify explicitly that I am going after a 2D look (like in any CAD-like app) which would mean: the thickness of the lines does not depend on how far/near the camera is located from them.</p>

<p><strong>UPDATE</strong>: thanks for answer of @rickyviking, I chose the direction to move with - geometry shaders. I still do not have a complete solution, but might post a final update and minimal code when the result is achieved, here.</p>