I'm trying to display a quad which is white, and i have a background which is black (or textured if skybox is drawn). I can see everything else in game. The problem is i cannot see my quad. I know my vertex layout should work since i tested it manually on a seperate project before i touched this.
Im using FVF: D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1
and my triangles:
//locked the buffer etc
top = 0.0f;
left = 0.0f;
width = 400.0f;
height = 100.0f;
TLVERTEX V[6] =
{
{left, top, 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),}, //Vertex 1 - Red (250, 100)
{(left+width), 0.0f, 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),}, //Vertex 2 - Green (400, 350)
{(left+width), (top+height), 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),}, //Vertex 3 - Blue (100, 350)
{(left+width), (top+height), 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),},
{left, (top+height), 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),},
{left, top, 1.5f, 1.0f, D3DCOLOR_XRGB(128, 128, 128),},
};
Ive disabled lighting and can't think what else to do. I've tried commenting out camera control lines but no avail.
If you need any more details let me know.
//Rendering code for quad
Gfx.pD3DDevice9->SetRenderState(D3DRS_LIGHTING, false);
Gfx.pD3DDevice9->SetMaterial(Mtrls);
Gfx.pD3DDevice9->SetStreamSource(0, Quad,0, sizeof(TLVERTEX));
Gfx.pD3DDevice9->SetFVF(D3DFVF_TLVERTEX);
Gfx.pD3DDevice9->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 2);
Thanks for any hints :)