Archived

This topic is now archived and is closed to further replies.

danrok

...indexed Primitive + trianglestrip...

Recommended Posts

danrok    122
Hi everybody! I've got a little problem with drawIndexedPrimitiv and the D3DPT_TRIANGLESTRIP Flag. The vertex-buffer in my Programm contains 4 vertices ( (-1.0, 1.0), (1.0, 1.0), (-1.0, -1.0), (1.0, -1.0) in this order ) and the index-buffer with 4 indices ( 3, 1, 4, 2 ).
1(-1.0, 1.0)------2(1.0, 1.0)
|                 /|
|                / |
|               /  |
|              /   |
|             /    |
|            /     |
|           /      |
|          /       |
3(-1.0, -1.0)----4(1.0, -1.0)
m_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLESTRIP, 0, 1, 4, 0, 2); But the call of drawIndexedPrimitiv, don't produce the expected quad, only some degenerated triangles. Does somebody know a solution? thx [edited by - danrok on September 1, 2003 6:54:50 AM]

Share this post


Link to post
Share on other sites