Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8131255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:02:21+00:00 2026-06-06T09:02:21+00:00

In OpenGL for achieving a proper transparency effect I should use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) but

  • 0

In OpenGL for achieving a proper transparency effect I should use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) but with that blending function an alpha parameter in glClearColor becomes meaningless. When I change an alpha parameter in glClearColor I still get the same effect. When can I use the alpha parameter in glClearColor? What kind of effects Can I achieve?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:02:23+00:00Added an answer on June 6, 2026 at 9:02 am

    glClearColor sets the color (and alpha value) a RGBA framebuffer will be cleared to with glClear(GL_COLOR_BUFFER_BIT). The framebuffer alpha value would be taken into account with GL_DST_ALPHA or GL_ONE_MINUS_DST_ALPHA blend functions.

    However your regular on-screen window framebuffer usually doesn’t carry an alpha value. Notable exceptions exist of course, for example transparent windows with the background shining through, but they’re a bit tedious to set up, and will still receive all mouse events, even if over “transparent” areas.

    Framebuffers with an alpha channel are mostly of interest als render to texture targets.

    So in your case, the clear color is of no particular interest for you. You’re much more likely interested in the 4th parameter of glColor4f or textures with an alpha channel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For OpenGL. There are many texture loaders that I could use, but what are
OpenGL Setup: glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glEnable( GL_DEPTH_TEST ); glEnable( GL_TEXTURE_2D
I'm having some trouble achieving my desired effect in an OpenGL ES app I'm
The OpenGL documentation say that the gluLookAt() calls should be done on the GL_MODELVIEW
In OpenGL, is there a way to use framebuffer data as vertex data without
Using OpenGL ES I am rendering a simple cube class that draws it at
Someone told me that openGL is for graphic only, and that it's very bad
I'm using opengl's selection buffer, but i'm experiencing a trouble, the picking works perfectly
When using OpenGL 1.4 fixed-function multitexturing, is the output of every texture stage clamped
I have a window opengl appcilation, where I use a multi array, and when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.