Sign in to follow this  
DesignerX

Alpha blend question [ Solved ]

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this