Renderer OBJ and MTL Files Using OpenGL and OpenCV
Parsing OBJ and MTL Geometry and Materials OBJ models may contain faces with variable vertex counts within a single file. Instead of assuming triangular or quadrilateral polygons, use GL_POLYGON inside a glBegin/glEnd block when drawing each face. This handles arbitrary polygon order correctly. Mate...