PDA

View Full Version : cham help



xbtc
26th January 2006, 05:11
hi.. i need some help on my chams for DFX, i got them "working" but they show up tie-dyed kind of, like i can see the people through hills / walls etc but they dont show up orange / blue like i want, nor do they show up red / blue. i have 3 ss's of what my problem is and will attach my code for my model's.

http://img101.imageshack.us/img101/3285/ss005479jv.jpg

http://img101.imageshack.us/img101/9685/ss005464tt.jpg

http://img83.imageshack.us/img83/6577/ss005497sy.jpg


if(GetAsyncKeyState(VK_F3) && m_Stride == 80) //model
{
DWORD dwOldZEnable = D3DZB_TRUE;
m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->SetTexture(0, texBlue);
m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
m_pD3Ddev->SetTexture(0, texRed);
return m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}

edit: i also attached 2 screenshots of my claymores.. i get the same problem when i try to work with them and i dont know what i did wrong..