Results 1 to 3 of 3

Thread: Rendering transparancy

  1. #1
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Rendering transparancy

    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...
    NecroSOFT - End of line -

  2. #2

    Rendering transparancy

    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);
    www.pascalgameengine.com - Crossplatform 3D game engine

  3. #3
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Rendering transparancy

    I will try it tomorrow, bit late now - I'm just back from a party
    NecroSOFT - End of line -

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •