actually I try to render two connected triangle strips using DirectX 9 and degenerated
triangles but I fail, only the first strip is rendered:
Vertex vertices[] = {
Vertex(-1.0f, 0.0f, 0.0f, 255, 0, 0, 255),
Vertex(-1.0f, 1.0f, 0.0f, 0, 255, 0, 255),
Vertex( 0.0f, 0.0f, 0.0f, 0, 0, 255, 255),
Vertex( 0.0f, 1.0f, 0.0f, 0, 255, 255, 255),
Vertex( 1.0f, 0.0f, 0.0f, 0, 255, 0, 255),
Vertex( 1.0f, 1.0f, 0.0f, 255, 255, 0, 255),
Vertex( 1.0f, 1.0f, 0.0f, 255, 255, 0, 255), //degenerated tris
Vertex(-1.0f, -1.0f, 0.0f, 0, 255, 255, 255), //degenerated tris
Vertex(-1.0f, -1.0f, 0.0f, 0, 255, 255, 255),
Vertex(-1.0f, 0.0f, 0.0f, 255, 0, 0, 255),
Vertex( 0.0f, -1.0f, 0.0f, 255, 255, 255, 255)
};
d3ddev->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 6);
If i understand this correctly, I've only add a degenerated
triangle to connect both strips:
http://msdn.microsof...v=vs.85%29.aspx
With OpenGL everything is working as expected, but with
DirectX is I could only render the first strip ...
Thanks for any help.
Snoob












