Original Post
Hi, I am trying to set my mesh's .x files trasparency with the code below.It's working but i have a problem.Mesh's transparency increasing white (255,255,255) to black(0,0,0).I mean if mesh's texture is white it is more opaque but if the texture is black it is transparent.I want to revers it.Black to white opaque to transparent. Does anyone have any idea about it?
[sourcecode]
// alpha on
pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE);
// choose a blending type
pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_BOTHSRCALPHA);
[sourcecode]