By
RoverTurbo
Drawing objects with the z-buffer (depth) disabled will make objects appear visable even when hidden behind other objects.
Code:
HRESULT APIENTRY IDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT startIndex, UINT PrimitiveCount)
{
Device->SetRenderState(D3DRS_ZENABLE, false);
Device->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
Device->SetRenderState(D3DRS_ZENABLE, true);
return Device->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
Adding some model recognition will allow you to apply the effect to single objects.
Credits: Person who first used/found the method and Directx community.