From: Allen A. <ak...@va...> - 2000-06-19 21:19:08
|
On Mon, Jun 19, 2000 at 09:56:13PM +0200, Thomas Hellstrom wrote: | Yes. This patch fixes the most annoying lines, However there is | still a line present exactly at the window border on _some_ of the | clipped polygons in my application. One of the main differences between drawing a polygon's vertices as a line loop and drawing them as a polygon in glPolygonMode(GL_LINE) is that the latter displays a line where the polygon is clipped, and the former doesn't. This allows you to get a visual cue when clipping has occurred, if you want one. If you're not getting the line at the window border on *all* the clipped polygons, it's possible that (a) the OpenGL implementation isn't clipping correctly, (b) the viewport transformation is off by a pixel or so, causing the clipped edge to fall just outside the window, or (c) something else is wrong. :-) You could check (b) by squeezing your viewport transformation down to a slightly smaller rectangle inset in the window. The other possibilities are good fodder for bug reports. Allen |