Too close to the animal to the Chams does not work, or point it with the weapon he disappears. It is as if in short distance ranges chams not working.
Any ideas? I need to add something? I miss something? Please help or suggestion.
Add some photos and code.
Code:
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, UINT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT m_Stride = 0;
if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
Stream_Data->Release();
if(Chams==1)
{
if(Mule_Deer_F || Mule_Deer_M) // Female or Male
{
pDevice->SetRenderState(D3DRS_ZENABLE,0);
pDevice->SetTexture( 0, aRed);
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
}
IMAGES ATTACHED DOWN
ANY IDEAS?
Tanks all.