Original Post
Hi all,
I have a mesh interface: LPD3DXMESH m_pMesh;
Then i use the D3DX function D3DXCreateBox to create a box primitive, then render using m_pMesh->DrawSubset(0);
everythng work ok, until i try to use textures, when i set a texture and do DrawSubset the texture flickers, and does appear in some places at all, so the whole thing looks really really messed up..
Any idea why? I set all the render states, I set the VertexShaderFVF to m_pMesh->GetFVF();, but the whole thing is messed up. I have my own CCube class with a Vetex Buffer, and I can render textured cubes no problem, but if I use the
LPD3DXMESH and try to use textures, it doesn''t work....
please, any feedback is appreciated, and thanks in advance,
~Dima