Best way to draw hexes and texture them?

Started by
1 comment, last by RJH 22 years, 10 months ago
What''s the best way to draw hexagonals with OpenGL: 1) 1 GL_QUAD and 2 GL_TRIANGLEs ? 2) 6 GL_TRIANGLE_FANS ? 3) 1 GL_POLYGON with 7 vertices ? 4) Other? I''m creating a hex map and want to apply a texture image to it. Does the use of a texture influence choices above? Is there any way to apply a single texture to cover a set of polygons rather than 1 texture per polygon? Thanks for any replies.
Advertisement
You can draw a hexagon with 4 triangles and 6 vertices if you wanted. Just put a triangle in the center, and then it will have 3 sourrounding triangles.

Possibility
Hmm.. I would say a triangle fan would work the best way, at least vertex wise. Texturing is the same in all cases, (read nehe tutorials in this area) I dont know if you could make texturing faster or slower by any method in opengl , what you have to check is to avoid many state changes, that will truly make your game slower.

This topic is closed to new replies.

Advertisement