Shader-Based Wireframe Drawing

Jakob Andreas Bærentzen, Steen Lund Nielsen, Mikkel Gjøl, Bent Dalgaard Larsen

    Research output: Contribution to journalJournal articleResearch


    In this paper, we first argue that drawing lines on polygons is harder than it may appear. We then propose two novel and robust techniques for a special case of this problem, namely wireframe drawing. Neither method suffers from the well-known artifacts associated with the standard two pass, offset based techniques for wireframe drawing. Both methods draw prefiltered lines and produce high-quality antialiased results without super-sampling. The first method is a single pass technique well suited for convex N-gons for small N (in particular quadrilaterals or triangles). It is demonstrated that this method is more efficient than the standard techniques and ideally suited for implementation using geometry shaders. The second method is completely general and suited for arbitrary N-gons which need not be convex. Lastly, it is described how our methods can easily be extended to support various line styles.
    Original languageEnglish
    JournalComputer Graphics and Geometry
    Issue number2
    Pages (from-to)66-79
    Publication statusPublished - 2008

    Bibliographical note

    Invited paper. Extended version of previous conference paper.

    Fingerprint Dive into the research topics of 'Shader-Based Wireframe Drawing'. Together they form a unique fingerprint.

    Cite this