PDA

View Full Version : Constant Line Width



sumkang
08-18-2012, 03:23 AM
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.

tksuoran
08-19-2012, 08:50 AM
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.