Original Post
i am crazy with my vertex blend.. this is my vertex define.. struct Vertex { enum{ FVF = D3DFVF_XYZB1 | D3DFVF_LASTBETA_UBYTE4 | 3DFVF_NORMAL | D3DFVF_TEX1 }; D3DXVECTOR3 p; union { float beta; BYTE indices[4]; }; D3DXVECTOR3 n; float tu, tv; }; and before render it i set the renderstate as: SetRenderState( D3DRS_INDEXEDVERTEXBLENDENABLE, TRUE ); SetRenderState( D3DRS_VERTEXBLEND, D3DVBF_0WEIGHTS ); but when i render: SetFVF(Vertex::FVF) SetStreamSource(........) DrawPrimitive........ when call DrawPrimitive ,,,i get an error in debug window : Direct3D9: (ERROR) :The number of blend weights in the FVF should match what is set in D3DRS_VERTEXBLEND for indexed vertex blending why ??? anybody can help me? thanks.