Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

Blending tip/info

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

Was testing some fullscreen blending and I noticed that If I had blending on with a fullscreen texture that was fully opaque alpha = 1.0, blending is faster than if it is partially transparent alpha = .4 Is there some cap limit like .99 or something that it decides the pixel doesn't need to access the pixel currently in the framebuffer to mix with and just overwrites it (straight write instead of read, mix, write) ?

Share this post


Link to post
Share on other sites
Advertisement

Was testing some fullscreen blending and I noticed that If I had blending on with a fullscreen texture that was fully opaque alpha = 1.0, blending is faster than if it is partially transparent alpha = .4 Is there some cap limit like .99 or something that it decides the pixel doesn't need to access the pixel currently in the framebuffer to mix with and just overwrites it (straight write instead of read, mix, write) ?


What card are you using? It seems like a cheap trick some of the integrated (like Intel GMA) cards might try to do. It's an implementation-specific detail. The driver/card can do anything it wants as long as the output is correct.

Does your texture have an alpha channel? If I'm a clever driver trying to squeeze frames out of a cruddy card, and I see the material is set to alpha 1.0, and the texture has no alpha, I won't bother with alpha blending because I know what the result will be... Same if alpha is set to 0.0; I don't even have to draw! (except to depth buffer)

Can you show the code you tested with?

Share this post


Link to post
Share on other sites
I'll try it with an alpha texture opaque and transparent in a bit. I used a RGB texture using glColor4f, so RGBA might do differently. This was a 450gts.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!