|
||||||||||||||||||
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 |
|
![]() Taharez GDNet+ Member since: 6/18/2000 From: Stockholm, Sweden |
||||
|
|
||||
| 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 |
||||
|
||||
![]() NekoRore Member since: 11/14/2002 From: United Kingdom |
||||
|
|
||||
| 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? |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|