Rendering nonconvex polygons?
For the 2D top-down game I'm working on, I'm going to have to render arbitrary, "nonconvex" polygons (like "T"s and polygons with indentations). OpenGL doesn't like polygons like that...what's the cheapest way to get this to work? (I'm assuming you have to subdivide the polygon into convex shapes--where can I find an algorithm (or built-in OpenGL function?) for that?)
-matt
gluTess* does what you want, but it's slow so for anything realtime you'll want to cache the output.
-Morten-
-Morten-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement