semi transparent texture / alpha blending
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.graphics only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... graphics Profile…
 Up
semi transparent texture / alpha blending         


Author: Mekko
Date: Jul 30, 2008 11:47

Hi all,

I am fairly new to directx and now stuck with transparency and alpha
blending. I am trying to achieve the following and am just not sure if
and how this can be done:

I have a billboard in front of the camera. The texture contains blue
parts which I already managed to make transparent by color keying. Now I
would like to make the rest of the texture (as it is visible now)
semi-tranparent so the the background of the scene can be seen through
the billboard.

How can I make the color blue fully transparent and the rest of the
texture semi-tranparent? Is this combination possible at all?

Thanks for your help in advance!
2 Comments
Re: semi transparent texture / alpha blending         


Date: Jul 30, 2008 14:58

[Please do not mail me a copy of your followup]

Mekko spake the secret code
<6fbraiFa5dj8U1@mid.uni-berlin.de> thusly:
>I have a billboard in front of the camera. The texture contains blue
>parts which I already managed to make transparent by color keying.

When you say "transparent by color keying", presumably you are
referring to the color key argument to the D3DX function that creates
textures. It does this by replacing the pixels matching the color key
color with transparent black -- D3DCOLOR_RGBA(0, 0, 0, 0).
>Now I
>would like to make the rest of the texture (as it is visible now)
>semi-tranparent so the the background of the scene can be seen through
>the billboard.
>
>How can I make the color blue fully transparent and the rest of the
>texture semi-tranparent? Is this combination possible at all?
Show full article (1.79Kb)
no comments
Re: semi transparent texture / alpha blending         


Author: Mekko
Date: Jul 31, 2008 10:41

Thanks a lot, your book really helped me understanding and I found the
solution faster than expected!

Richard [Microsoft Direct3D MVP] wrote:
> [Please do not mail me a copy of your followup]
>
> Mekko spake the secret code
> <6fbraiFa5dj8U1@mid.uni-berlin.de> thusly:
>
>> I have a billboard...
Show full article (1.79Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: Texture is transparent, but primitive is opaque?comp.graphics.api.opengl ·
Re: Challenge 13 - Textures - JoeB #2 - two texturescorel.PaintShopPro_Photography ·