Original Post
Hi everyone, i hope someone can help me.
I have loaded a texture using the following line:
D3DXCreateTextureFromFileEx(g_pD3DDevice, node->FilePath,D3DX_DEFAULT,D3DX_DEFAULT,6,0,D3DFMT_A8R8G8B8,D3DPOOL_DEFAULT,D3DX_FILTER_LINEAR,D3DX_FILTER_LINEAR, 0xffff0000,NULL, NULL,&node->g_pTexture);
I have then used the following code to make the texture transparent in the 100% red areas.
g_pD3DDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCCOLOR);
g_pD3DDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCCOLOR);
The above code isnt working and i cant find any clear source examples. I have tried several combinations of everything to no avail.
Please could someone help
regards
ace