Im not sure what the method is called, multitexturing, texture on texture..
basically, i want to put image #1 on top of image #2 (making only the black part transparent in image #1).
this is what im using at the moment
the result is in image #3Code:g_Device->SetTexture(0, TextureGrass); g_Device->SetTexture(1, TextureBlood); g_Device->SetTextureStageState(1, D3DTSS_TEXCOORDINDEX, 0); g_Device->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_ADD); g_Device->SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_CURRENT); g_Device->SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_TEXTURE);
as you can see, the black is transparent, but it blends the other colors with the grass.
cool effect, but not what im going for.
Thanks in advance.



LinkBack URL
About LinkBacks


