PDA

View Full Version : Faces



alexiis
01-07-2012, 02:04 PM
Hello dear community. I have a question - what does it mean word faces? Is that triangles? I have face list and my mission is to show texture on that faces. Each face has 3 numbers - as i understand it is points x, y, z. Is it correct to use gl_triangles to output faces? Is it possible to show texture image on these faces? Thanks a lot.

awhig
01-07-2012, 05:21 PM
what does it mean word faces? Is that triangles?

Generally yes. It may mean any polygonal surface whose normal vector points to viewer.


I have face list and my mission is to show texture on that faces. Each face has 3 numbers - as i understand it is points x, y, z. Is it correct to use gl_triangles to output faces?

Generally yes. But again it depends on your face list how many points constitute a face.



Is it possible to show texture image on these faces?
Yes. eg: for drawing a triangle, just before glVertex you should use glTexture.

alexiis
01-08-2012, 04:40 AM
Thanks a lot.