Re: Clipping does not work properly with ATI specific card.



jbwest wrote:

I don't think Wolfgang is correct about GL_LINE *polygon mode*.
They are not just lines, IMO they are required to obey polygon
behavior (backface, winding etc).

Well, we're both right in some sense.

I read the spec about those points carefully, now:

If polygon mode is GL_LINE, then rasterization shall take place
like if the corresponding vertices are defined between
glBegin(GL_LINES) /*...*/ glEnd(), if the edge between them is
marked as edge. For a GL_QUADS set of vertices this flag is set
for all edges naturally. Otherwise rasterization shall take
place as usual (my point).

Clipping is performed before the polygon mode takes place, so it
introduces new vertices, and sets their edge flages, if the
clipped vertices themself belonged to an edge. Thereafter
winding and from that backface determination and polygon mode
are determined (jbwest's point).

Wolfgang

.



Relevant Pages

  • Re: Companion question to polygon winding rule
    ... Bint wrote: ... > do with the outline of a complex polygon. ... > If I fill a polygon that intersects itself so that the holes are ... record the winding count on each side of it); ...
    (comp.graphics.algorithms)
  • Re: Point Inside Polygon - Ray Method
    ... polygon went counterclockwise around the point. ... winding numbers may exceed 1 if the polygon isn't simple. ... If the boundary of a plane region is a simple closed curve, then one ray ...
    (sci.math)
  • Re: Point Inside Polygon - Ray Method
    ... There is an alternative method called "winding". ... Define the quadrants in the usual manner, except use q for the origin. ... Traverse the polygon. ... If the final winding count is 0, ...
    (sci.math)
  • Re: Point Inside Polygon - Ray Method
    ... polygon went counterclockwise around the point. ... winding numbers may exceed 1 if the polygon isn't simple. ... Perhaps strict convexity would be a sufficient condition for three ...
    (sci.math)
  • Re: backface culling of lines?
    ... equivalent of backface culling with GL_LINES? ... Draw the solid object. ... Do some polygon offset ... Backface/frontface has nothing to do with *vertex* normals, though, only the ...
    (comp.graphics.api.opengl)