PDA

View Full Version : How do I texture map a Triangle Strip?



Jim Gray
06-09-2000, 11:50 AM
Word on the street is: one triangle strip
is faster than a bunch of triangles. This
makes sense, since triangle strips need
fewer vertices. So, I want to use triangle
strips.

But, how do I assign texture coordinates?

Each vertex in a triangle strip can be
part of three different triangles, and
(I'm thinking) needs three different
texture coordinates. Is there some way
to deal with this?

Any help greatly appreciated!

Jim.

j
06-09-2000, 02:24 PM
Because all the triangles in a triangle strip are linked, you only need one texture coordinate per vertex, just the same as doing individual triangles.

Jim Gray
06-09-2000, 03:10 PM
Ah hah! (Light going off in my head! http://www.opengl.org/discussion_boards/ubb/smile.gif )

A single texture will map across all the
triangles in the strip! Now it makes
sense. http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Thanks, J!

Jim.