Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


blackknight467

Member Since 05 Feb 2012
Offline Last Active Feb 05 2012 03:21 AM

Topics I've Started

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

05 February 2012 - 03:26 AM

So using a wavefront object file as defined here: http://en.wikipedia.org/wiki/Wavefront_.obj_file
how am i supposed to render faces that have more than 4 vertices in opengl.

I undertand that if it have 3 vertices i use GL_TRIANGLES, if it has 4 i use GL_QUADS, but if it has 5 or more, what am i supposed to use? Is there a standard? in my internet search i haven't been able to come up with anything and samples open gl code i've found only support up to 4 vertices.

I created an object file by exporting from google sketchup and many of the faces have more than 4 verticies, is there a tool or another modeling program i can / should be using?

PARTNERS