PDA

View Full Version : Good looking lines



11-09-2003, 06:44 AM
Is there any possibility to draw good looking lines (anti-aliased, round or bevelled edges for a line width greater than one) in OpenGL? I want to use as much hardware acceleration as possible.

Thanks in advance.

yaro_dup1
11-09-2003, 08:16 AM
Look at Javac topic below.

11-09-2003, 01:06 PM
Erm, can't see how this is an answer so my question. How can I achieve a good looking line cap with anti-aliasing with a line width greater than 1? My OpenGL implementation always cuts of the end of a line horizontally or vertically instead of perpendicular to the line direction. What I want to achieve is a line cap looking like this:

----###---------
--#######-------
----#######-----
------#######---
--------#######-

insead of this:

#######---------
--#######-------
----#######-----
------#######---
--------#######-

with an arbitrary line width. Is it possible? Since my driver cuts it off as described above, I don't think there is something in the OpenGL specification about it, is it?