Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: best simple antialiasing of lines -- textures or alpha vertices?

  1. #1
    Intern Newbie
    Join Date
    Nov 2010
    Posts
    40

    best simple antialiasing of lines -- textures or alpha vertices?

    Hello,

    I have read that a good way to antialias lines in openGl is to use a texture map of an antialiased circle and map the coordinates of a rectangular set of vertices to it, like this:

    http://answers.oreilly.com/topic/166...ures-in-ios-4/

    However, I've also read about adding a layer of polygons around the outside of a rectangle, with the outer vertex alpha equal to 0. That is what I do now, and it looks fine.

    http://stackoverflow.com/questions/3...with-antialias
    http://stackoverflow.com/questions/1...-aliased-lines

    But I am wondering if the other way is faster, maybe? Which technique is better?

    Thanks
    Bob

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    Given that the same number of pixels are rendered the few the number of triangles is better.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •