signed distance fields
play

Signed Distance Fields Conventional anti-aliasing can only smooth - PowerPoint PPT Presentation

Signed Distance Fields Conventional anti-aliasing can only smooth pixels immediately adjacent to the source values. Signed distance fields represent monochrome pixelated data as a distance map instead of as pixels. This allows per-pixel


  1. Signed Distance Fields Conventional anti-aliasing can only smooth pixels immediately adjacent to the source values. Signed distance fields represent monochrome pixelated data as a distance map instead of as pixels. This allows per-pixel smoothing at multiple distances.

  2. Signed Distance Fields The bitmap becomes a height map. Each pixel stores the distance to the closest black pixel (if white) or white pixel (if black). Distance from white is negative. 3.6 2.8 2 1 -1 3.1 2.2 1.4 1 -1 2.8 2 1 -1 -1.4 2.2 1.4 1 -1 -2 2 1 -1 -1.4 -2.2 2 1 -1 -2 -2.8 Signed distance field Conventional antialiasing

  3. Signed Distance Fields Conventional bilinear filtering low = 0.02; high = 0.035; computes a weighted average of double dist = bilinearSample(tex coords); color, but an SDF computes a double t = weighted average of distances. (dist - low) / (high - low); This means that a small step away return (dist < low) ? BLACK from the original values we find : (dist > high) ? WHITE smoother, straighter lines where : BLACK*(1 - t) + WHITE*(t); the slope of the isocline is perpendicular to the slope of the source data. By smoothing the isocline of the Adding a distance threshold, we achieve second smoother edges and nifty edge isocline effects. enables colored borders.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend