Jump to content
  • Advertisement
Sign in to follow this  
visla

Alpha Blending when Rendering to texture! HELP!

This topic is 4698 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some problems doing alpha blending while rendering to some texture. Exactly I have render target, and i am using AlphaBlendEnable=true, SrcBlend=one; DstBlend=one; but all seem to work when dont have render target. But when I set render target then it is all rendering as if I had AlphaBlending=false; Problem: I need to render particle systems and all scene to one final render target and later do some post processing...

Share this post


Link to post
Share on other sites
Advertisement
Are you rendering to a floating point render target? Most of the hardware currently available is not able to perform alpha blending when rendering to these kinds of surfaces.

neneboricua

Share this post


Link to post
Share on other sites
Well. I am rendering to FP surface... I need to render to fp surface. is there anyway i can do this. I want to render everything on scene to fp surface in order to make HDR, and also want to make my particles in that. How modern engines solve this if it is not possible to render to fp surface.

Share this post


Link to post
Share on other sites
There are two ways this is normally done. The first is to render your particles at a later stage when you're using a non-floating point target.

The other option is to perform the alpha blending yourself in your pixel shader. To do this, you would need to use two render targets and alternate between them.

neneboricua

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!