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: Ugly Lines

  1. #1
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Ugly Lines

    Hi!
    I am displaying GL_QUADS as
    glLineWidth(1);
    glEnable(GL_LINE_SMOOTH);
    glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);
    But sometimes the lines do not look very pretty. Some times the lines are broken.
    I do not know??
    Juergen

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    354

    Re: Ugly Lines

    Did you enable blending?

    Try also glHint(GL_LINE_SMOOTH_HINT, GL_NICEST) to ask for best quality (this is only a hint, it can be ignored by the implementation).

Posting Permissions

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