• Advertisement

Archived

This topic is now archived and is closed to further replies.

Best way to draw hexes and texture them?

This topic is 6060 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites

  • Advertisement