High Quality Anti-Aliased Real Time Contours in OpenGL

High Quality Anti-Aliased Real Time Contour in OpenGL



Here is a method to get nice anti aliased contours (useful for displaying text for example) without the need for a big binary alpha map (like 4096×4096).

Stefan Gustavson has developed a distance transform method that takes an anti-aliased alpha map as input and computes a distance field with accurate sub-pixel resolution, without the need for a 4K+ binary alpha map—a modestly sized alpha map rendered with proper AA is enough.

A demo with full source code (OpenGL + GLSL) is available HERE.

And the method seems to work rather well:

High Quality Anti-Aliased Real Time Contour in OpenGL

High Quality Anti-Aliased Real Time Contour in OpenGL

High Quality Anti-Aliased Real Time Contour in OpenGL

[via]



Related posts:

  1. Redway3d OpenGL Graphics Benchmark
  2. ATI Radeon HD 5870: The New Reference for OpenGL High-Performance Graphics?
  3. Pixel City: Procedurally Generated City in OpenGL
  4. Awesome: Real Time 3D Fluid and Particle Simulation and Rendering
  5. Futuremark 3D OpenGL-Powered Car Dashboard