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: Constant Line Width

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    5

    Constant Line Width

    i have four points connected with a line(constant width) when i move any of my points in X direction than width of my line varies between points, how can i keep my line width constant.

  2. #2
    Junior Member Regular Contributor tksuoran's Avatar
    Join Date
    Mar 2008
    Location
    Cambridge, UK
    Posts
    223
    Aliased wide lines in OpenGL have strange width definition. Width is counted as either vertically or horizontally, so if your lines are not completely horizontal or vertical, you probably don't get what you wanted.

    Try enabling antialiasing. Multisample line rasterization has more sane rules.

Posting Permissions

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