PDA

View Full Version : GL_TRIANGLE_STRIP & tex coords??



09-10-2001, 09:27 AM
Hi.
I want to draw using GL_TRIANGLE_STRIP
instead of GL_TRIANGLES

It confuses me, since every second element gets flipped (mirrored)
tex coords ( it makes sense since Im only providing 2 values during
the sequencing ) but is quite unusable.

Any suggestions anyone?

Thanks in advance
Joakim

harsman
09-11-2001, 03:21 AM
Just make sure each vertex has the same texture coords as when submitting triangles and you should be fine. It sounds like you're somehow flipping your indices/vertices. Try looking here: http://www.eecs.tulane.edu/www/Terry/OpenGL/Primitives.html#OpenGL%20Primitives
It shoes the ordering of various OpenGL primitives.