title: Converting .obj per-face variables for OpenGL
body: <p>As far as I know, OpenGL doesn't support per-face attributes [citation needed]. I have decided to use material files of .obj files and have already successfully loaded them into my project. However, I thought that materials were used per-object group and I realized that .obj format can actually use per-face materials. Therefore, a vertex group (or lets say, mesh) can have more than one material for specific faces of it.</p>
  
  <p>I would be able to convert small variables like specular etc. into per vertex but the whole material can vary from face to face; illumination, ambient, specular, texture maps (diffuse normal etc.). It would be easy if the materials were per-mesh, so that I could load them as sub-meshes and attach corresponding materials on them.</p>
  
  <p><strong>How am I going to handle multiple materials for ONE mesh in which the materials are not uniformly distributed among the faces in it?</strong> </p>