PDA

View Full Version : Rendering transparancy



NecroDOME
24-08-2006, 03:40 PM
Hi,

I have a texture with some text and images with an aplha channel. (This texture is a render target).

How can I fade the egdes of this texture? Is there a way to render only the aplha channel of a texture on it?

I'm using DirectX 9...

Relfos
24-08-2006, 06:17 PM
To render only the alphachannel I think you can do that by doing something like:

Device.SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1);
Device.SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE Or D3DTA_ALPHAREPLICATE);

NecroDOME
25-08-2006, 11:03 PM
I will try it tomorrow, bit late now - I'm just back from a party :)