How do faces in .obj work?
Posted
by
Adl
on Stack Overflow
See other posts from Stack Overflow
or by Adl
Published on 2010-12-01T20:24:55Z
Indexed on
2011/01/13
9:54 UTC
Read the original article
Hit count: 296
Hi
When parsing an .obj-file, with vertices and vertex-faces, it is easy to pass the vertices to the shader and the use glDrawElements using the vertex-faces.
When parsing an .obj-file, with vertices and texture-coordinates, another type of face occur: texture-coordinate faces.
When displaying textures, apart from loading images, binding them and passing texture coordinates into the parser, how to use the texture-coordinate faces? They differ from the vertex-faces and I suppose that the texture-coordinate faces have a purpose when displaying textures?
Regards Niclas
© Stack Overflow or respective owner