-0x80
01-29-2008, 03:13 PM
Hi,
I'm using the GLUT to tesselate the contour of a human body and draw it as a solid shape. Everything is fine if I draw directly from the tesselation algorithm, like the picture below.
I need to store the vertices into an array and draw the whole array with a SINGLE draw mode. The problem is, the tesselation algorithm breaks up the shape into various sections and uses different drawing modes for each, like triangles, triangle_fan etc.
How can I get this output to work if I'm limited to only one single drawing mode, say just triangles? Is there a way to force the algorithm to be consistent?
Cheers,
0x80
http://www.vauxlab.com/tmp/tesselate.png
I'm using the GLUT to tesselate the contour of a human body and draw it as a solid shape. Everything is fine if I draw directly from the tesselation algorithm, like the picture below.
I need to store the vertices into an array and draw the whole array with a SINGLE draw mode. The problem is, the tesselation algorithm breaks up the shape into various sections and uses different drawing modes for each, like triangles, triangle_fan etc.
How can I get this output to work if I'm limited to only one single drawing mode, say just triangles? Is there a way to force the algorithm to be consistent?
Cheers,
0x80
http://www.vauxlab.com/tmp/tesselate.png