To Display Concave polygons & polygon containing holes

Dear OpenGL Experts,

I am creating application, which requires the display of concave polygons, polygons containing holes and polygons intersecting edges.
How can I get this?

Please write to me at

Deepa S. Nomula
Software Consultant,
Navi Mumbai.

Your software really needs to subdivide.

You could draw individual triangles and use stencil operatiosn but that’s really inefficient.

Current hardware is not really designed to handle your problem well.

If your polygons aren’t transparent, you’ll need to tesselate your polygons into triangles using something like the GLU polygon tesselator and then render the triangles. The zbuffer will automatically take care of intersecting polygons.

If your polygons are possibly transparent, then in addition to tesselating them, you’ll also have to clip & sort them, and things get a whole lot more complicated…