Advertisement

DrawIndexedPrimitive & DX8.1

Started by July 09, 2002 06:18 AM
-1 comments, last by lukas 22 years, 5 months ago
hello everybody I have a problem with DrawIndexedPrimitive() VertexBuffer and IndexBuffer I fill correctly, for sure. On scene are two objects ( two box, every objects have a 12 triangles and 8 vertex, 36 indices, box are separated ) when I call this : Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 8, 8, 36, 12 ); I get second box, that''s ok. when I try this Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 8, 0, 12 ); I get first one, that''s ok, too If I call : Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 8, 0, 12 ); Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 8, 8, 36, 12 ); I get only first one. why ??? and at last when I call : Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 16, 0, 24 ); I get first one, again. why ??? every function return S_OK. I will be very grateful if anyone help me lukas

This topic is closed to new replies.

Advertisement