Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2897839.2927417acmconferencesArticle/Chapter ViewAbstractPublication PagessiggraphConference Proceedingsconference-collections
invited-talk

Practical analytic 2D signed distance field generation

Published: 24 July 2016 Publication History

Abstract

In this talk, we present a novel technique to generate Signed Distance Fields (SDF) from vector paths. Unlike existing methods, instead of first rasterizing a path to a bitmap and then deriving the SDF, we can calculate the minimum distance for each pixel to the nearest segment directly from a path description comprised of line segments and Bezier curves. Our analytical method differs from previous works by computing distance in a canonical quadratic space. We have tested our code in Skia to accelerate SDF text rendering and we have found that our method is higher quality and more than 70% faster. Higher quality SDFs are achieved by sampling vector data at the SDF resolution required without losing quality to prior rasterization steps.
In this talk we present our approach and compare it to related work. We describe the algorithm in detail and how it was implemented in Google's Skia library. We present quality and performance results.

Supplementary Material

ZIP File (a68-abbas.zip)
Supplemental files.
MP4 File (a68.mp4)

References

[1]
Chris Green. 2007. Valve. Improved Alpha-Tested Magnification for Vector Textures and Special Effects. http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf.
[2]
Behdad Esfahbod, 2011. Glypy. https://github.com/behdad/glyphy.
[3]
Sarah F. Frisken, Ronald N. Perry, Alyn P. Rockwood, and Thouis R. Jones MERL -- Mitsubishi Electric Research Laboratory
[4]
Stefan Gustavson and Robin Strand, 2011. Anti- Aliased Euclidean distance transform.
[5]
Per-Erik Danielsson, 1980. Euclidean distance mapping. In Computer Graphics and Image Processing 14 (1980), 227--248.

Index Terms

  1. Practical analytic 2D signed distance field generation

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    SIGGRAPH '16: ACM SIGGRAPH 2016 Talks
    July 2016
    158 pages
    ISBN:9781450342827
    DOI:10.1145/2897839
    Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 24 July 2016

    Check for updates

    Author Tags

    1. 8SSEDT
    2. ES
    3. OpenGL
    4. SDF
    5. SVG
    6. path

    Qualifiers

    • Invited-talk

    Conference

    SIGGRAPH '16
    Sponsor:

    Acceptance Rates

    Overall Acceptance Rate 1,822 of 8,601 submissions, 21%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 561
      Total Downloads
    • Downloads (Last 12 months)44
    • Downloads (Last 6 weeks)6
    Reflects downloads up to 25 Nov 2024

    Other Metrics

    Citations

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media