elliot wrote:

My attempts so far show that concave polygons are possible, but why it
glitches in the way this is does not make sense to me.

Fundamentally, OpenGL only knows how to draw triangles. If
you tell it to fill a polygon, it actually fills a series
of triangles fanning out from the starting point. This is
only guaranteed to work correctly if the polygon is convex.
Sometimes a concave polygon will work, but only by luck.

To draw concave polygons reliably, you will need to
decompose them into non-overlapping triangles.

--
Greg

--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to