in a wavefront object file (.obj) how am i supposed to render faces with more than 4 vertices in opengl?

后端 未结 3 1077
别跟我提以往
别跟我提以往 2021-01-12 16:27

So using a Wavefront object file how am i supposed to render faces that have more than 4 vertices in OpenGL?

I understand that if it has 3 vertices I use GL_TR

3条回答
  •  悲哀的现实
    2021-01-12 17:00

    First, you should tell any exporting tool to not export faces with that many vertices. Faces should have 3 vertices, period.

    If your exporting tool can't do that, then your loading tool should break the polygons down into 3 vertex faces. I'm fairly certain that the Asset Importer library can do that.

提交回复
热议问题