An interactive tour of Voronoi diagrams on the GPU

ShaderX6/Charles River Media/Thomson publishing.
 
Frank NIELSEN
BibTex
@incollection{n-voronoigpu-2008,
author="Frank Nielsen",
title="An interactive tour of Voronoi diagrams on the GPU",
booktitle="ShaderX$^6$: Advanced Rendering Techniques",
year= 2008,
publisher = "Charles River Media (\url{http://www.charlesriver.com/})"
}

The Voronoi diagram is a well-studied fundamental structure in computational geometry that has found countless applications in computer graphics such as collision detection, path planning, meshing and surface reconstruction, just to name a few. Voronoi diagrams has also lead to a rich variety of GPU techniques to discretely compute them. In this chapter, we present a set of shaders that emphasizes graphically key geometric properties of Voronoi diagrams. Namely, we describe how to compute: We mention discretization errors incurred by GPU per-pixel fragment shading, common programming pitfalls and ways to circumvent them to improve stability. Finally, we show how these techniques can be extended to handle various useful generalizations of Voronoi diagrams: This set of shaders yields in a single application an interactive GPU tool to visualize on the fly dynamically these structures.

GPU Programs with Cg codes

Eight programs are available on the accompanying DVD. See videos below for session captures.

Color figures

(All images are in TIFF format (Apple Quicktime(R) players display them) and are screenshots of the GPU applications)
  1. Figure 1: Rendering styles for ordinary Voronoi diagrams
    IMG a IMG b IMG c IMG d
  2. Figure 2: Voronoi and orthogonally dual Delaunay triangulation
    IMG
  3. Figure 3: Curved and affine Voronoi diagrams
    IMG a IMG b IMG c IMG d
  4. Figure 4: Spherical and hyperbolic Voronoi diagrams
    IMG a IMG b IMG c
  5. Figure 5: Csiszar f-divergence Voronoi diagrams
    IMG a IMG b IMG c IMG d
  6. Figure 6: Bregman primal/dual Voronoi diagrams
    IMG a IMG b
  7. Figure 7: Voronoi diagrams interpreted as lower envelopes (minimization diagrams)
    IMG

Videos

References


Last updated, August 2007.