David Sankel
04-26-2011, 11:19 AM
I'm using OpenGL 4.1 core to implement a 3D line plotter. When the lines that I'm plotting intersect with the on-screen grid, it becomes quite confusing visually. Sometimes the grid occludes coplanar portions of the plotted lines.
I started looking for a line offsetting feature that works similarly to polygon offsetting but didn't encounter anything.
According to,
http://www.opengl.org/resources/faq/technical/polygonoffset.htm
, an alternative is to use glDepthRange. This seems a bit inelegant. Are there any other solutions out there?
I'm also considering drawing triangles with collinear edges (then I can use polygon offset). Does this have defined OpenGL behavior?
Are there any extensions out there that would solve this problem?
Thanks in advance,
David
I started looking for a line offsetting feature that works similarly to polygon offsetting but didn't encounter anything.
According to,
http://www.opengl.org/resources/faq/technical/polygonoffset.htm
, an alternative is to use glDepthRange. This seems a bit inelegant. Are there any other solutions out there?
I'm also considering drawing triangles with collinear edges (then I can use polygon offset). Does this have defined OpenGL behavior?
Are there any extensions out there that would solve this problem?
Thanks in advance,
David