Shader-Based Antialiased Dashed Stroked Polylines

Nicolas Rougier 1
1 Mnemosyne - Mnemonic Synergy
LaBRI - Laboratoire Bordelais de Recherche en Informatique, Inria Bordeaux - Sud-Ouest, IMN - Institut des Maladies Neurodégénératives [Bordeaux]
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.
Type de document :
Article dans une revue
Journal of Computer Graphics Techniques, Williams College, 2013, 2 (2), pp.91-107. 〈http://jcgt.org/published/0002/02/08/〉
Liste complète des métadonnées

Littérature citée [6 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-00907326
Contributeur : Nicolas P. Rougier <>
Soumis le : jeudi 21 novembre 2013 - 10:20:18
Dernière modification le : jeudi 20 septembre 2018 - 11:14:03
Document(s) archivé(s) le : samedi 22 février 2014 - 04:32:43

Fichier

paper.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-00907326, version 1

Collections

Citation

Nicolas Rougier. Shader-Based Antialiased Dashed Stroked Polylines. Journal of Computer Graphics Techniques, Williams College, 2013, 2 (2), pp.91-107. 〈http://jcgt.org/published/0002/02/08/〉. 〈hal-00907326〉

Partager

Métriques

Consultations de la notice

687

Téléchargements de fichiers

6828