Alpha blend question [ Solved ]

Started by
1 comment, last by DesignerX 16 years, 11 months ago
I rendered an 3D object into a surface and created a sprite from the surface. How can I get rid of the black background of the sprite using alpha blending. (I tried with SRCCOLOR and INVSRCCOLOR and got rid from the black background but also got the object a bit transpered) Is it possible to "tell" Direct3D that if the color (not the alpha) != 0 than render, otherwise don't render ?? Any ideas for a quick solution ? thx. [Edited by - DesignerX on May 3, 2007 10:04:32 AM]
There is nothing that can't be solved. Just people that can't solve it. :)
Advertisement
Can't you just clear the render target with the appropriate alpha value before rendering your object and then carry on as normal?

I'm not aware of a simple way to do a colour-replacement operation using the output merger - it's not really the way its designed. We specifically have this invisible alpha component to mask pixels for this type of operation [smile]

hth
Jack

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

Thx man, it works !
As simple as that :)
There is nothing that can't be solved. Just people that can't solve it. :)

This topic is closed to new replies.

Advertisement