Jump to content
  • Advertisement

Archived

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

danrok

...indexed Primitive + trianglestrip...

This topic is 5381 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!