Internet-Journal "Computer Graphics & Geometry"
Main Page
About Journal
Journal Issues
Editorial Board
Notes for Authors

 
   
   

COMPUTER GRAPHICS & GEOMETRY

Issue Year: 2008
Date: Autumn
Volume: 10
Number: 2
Pages: 66-79

Article Name: SHADER-BASED WIREFRAME DRAWING
Author: J. Bærentzen (Denmark), S. Nielsen (Denmark), M. Gjøl (Denmark), B. Larsen (Denmark)
Address: J. Bærentzen
jab@imm.dtu.dk
Informatics and Mathematical Modelling Department of the Technical University of Denmark
 
S. Nielsen
steen@munk-lund.dk
Deadline Games, Denmark
 
M. Gjøl
pixelmager@gmail.com
Zero Point Software, Denmark
 
B. Larsen
bdl@dalux.dk
Dalux and the Department of Informatics and Mathematical Modelling, Technical University of Denmark
Abstract:

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.

Open Article   Download ZIP archive

Issue contents