View Full Version : Thik lines
01-04-2008, 11:56 AM
Is there a way to avoid this ugly effect of thick lines?
The red arrow points to an arc drawn with: glLineWidth(8);
I have also tryed activating line antialiasing but nothing changes.
Thanks in advance,
01-04-2008, 01:19 PM
LineWidth prolly aint gonna give the best results but it certainly shouldnt be that bad, it looks like youre missing parts try GL_LINE_LOOP or GL_LINE_STRIP (i think thats the syntax) instead of GL_LINES
if that doesnt work for better lines u need to do the AA yourself eg in a fragment program or use textured quads for the lines
01-05-2008, 09:13 AM
We don't wanted to activate antialiasing, because it would reduce overall performances.
BTW we are already using GL_LINE_STRIP.
Looks like the only solution is activating antialiasing.
01-05-2008, 10:08 AM
What's wrong with the solution I provided:
unsigned int subdiv = 256;
float radius = 0.5f;
for (unsigned int i=0;i<subdiv;++i)
This works like a charm without a multisample buffer.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.