I want to use blending but can t get destination alpha to work. Can I blend or create a transparency effect without destination alpha?
Many OpenGL devices don’t support destination alpha. In particular, the OpenGL 1.1 software rendering libraries from Microsoft don’t support it. The OpenGL specification doesn’t require it. If you have a system that supports destination alpha, using it is a simple matter of asking for it when you create your window. For example, pass GLUT_ALPHA to glutInitDisplayMode(), then set up a blending function that uses destination alpha, such as: glBlendFunc(GL_ONE_MINUS_DST_ALPHA,GL_DST_ALPHA); Often this question is asked under the mistaken assumption that destination alpha is required to do blending. It’s not. You can use blending in many ways to obtain a transparency effect that uses source alpha instead of destination alpha. The fact that you might be on a platform without destination alpha shouldn’t prevent you from obtaining a transparency effect. See the OpenGL Programming Guide chapter 6 for ways to use blending to achieve transparency.
Related Questions
- I need to continue creating Silverlight 3 content, but also want to create content for Silverlight 4, is it possible to have Expression Blend 3 and Expression Blend 4 installed at the same time?
- I want to use blending but can t get destination alpha to work. Can I blend or create a transparency effect without destination alpha?
- What does it mean to say that wikis create "transparency"?