Home » Community » Forums » » DirectX 8 Graphics and Video: A Fresh Start
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 DirectX 8 Graphics and Video: A Fresh Start
Post Reply 
Nice article.
One little problem, though. The DrawIndexedPrimitive call won't work when drawing more than 1 triangle, the third parameter should be vertexcount, not indexcount (I think the Boids sample uses this).
This is the correct call:
pID3DDevice->DrawIndexedPrimitive(
                 D3DPT_TRIANGLELIST,
                 0,
                 sizeof(vertices) / sizeof(vertices[0]),
                 0,
                 sizeof(indices) / sizeof(indices[0]) / 3);
  

Would like to see more articles, you have a clear coding style, and write in a easy-to-understand way.

Edited by - Taharez on February 4, 2002 5:16:46 AM

 User Rating: 1049   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

After moving to 3D, ie, removing rhw from MYVERTEX and the appropriate flags, and not putting rhw into the vertices array, and enabling the z buffer; I can no longer see the textured triangle that I had before?

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: