Shader-Based Antialiased Dashed Stroked Polylines - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Journal Articles Journal of Computer Graphics Techniques Year : 2013

Shader-Based Antialiased Dashed Stroked Polylines

Nicolas P. Rougier

Abstract

Dashed stroked paths are a widely-used feature found in the vast majority of vector drawing software and libraries. They allow, for example, highlighting a given path such as the cur- rent selection in drawing software or distinguishing curves in the case of a scientific plotting package. This paper introduces a shader-based method for rendering arbitrary dash patterns along any continuous polyline (smooth or broken). The proposed method does not tessellate individual dash patterns and allows for fast and nearly accurate rendering of any user-defined dash pattern and caps. Benchmarks indicates a slowdown ratio between 1.1 and 2.1 with an increased memory consumption between 3 and 6. Furthermore, the method can be used for solid thick polylines with correct caps and joins with only a slowdown of factor 1.1.
Fichier principal
Vignette du fichier
paper.pdf (1.71 Mo) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

hal-00907326 , version 1 (21-11-2013)

Identifiers

  • HAL Id : hal-00907326 , version 1

Cite

Nicolas P. Rougier. Shader-Based Antialiased Dashed Stroked Polylines. Journal of Computer Graphics Techniques, 2013, 2 (2), pp.91-107. ⟨hal-00907326⟩

Collections

CNRS INRIA INRIA2
580 View
9134 Download

Share

Gmail Facebook X LinkedIn More