Alpha blend question [ Solved ]
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]
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement