Jump to content
  • Advertisement
Sign in to follow this  
Khatharr

Render-to-Surface ignoring separate alpha blending?

This topic is 2231 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

For font rendering I render my text to a texture surface and then just use the texture to display the text. I'd like to be able to render onto a surface without needing to clear the surface first, so that the rendered text is drawn on top of the existing texels.

In order to do this I:

-Start RTS
-Render the text to the surface
-End RTS

But I notice that this causes low-alpha texels around the edges of the rendered text, which is not good. So I try this:

-Create new texture with the dimensions of the existing one
-Start RTS
-Clear it
-Render the text to it
-End RTS
-Start RTS on the original texture surface
-Draw the new surface on top of it
-End RTS
-Dispose of the 'temporary' surface

But I'm still getting the same problem.

I checked my render states and I have separate alpha blending enabled. The op is ADD and the src/dest are the src/dest alpha, but the problem remains.

D3DPMISCCAPS_SEPARATEALPHABLEND is true.

So all I can think of is that maybe RTS ignores separate alpha blending?

Has anyone else run into this kind of thing?

Thanks in advance for any advice. :)

Share this post


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