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 8364149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:21:49+00:00 2026-06-09T12:21:49+00:00

glAlphaFunc(GL_GEQUAL, 0.5) can display the image where alpha >= 0.5. Can opengl display the

  • 0

glAlphaFunc(GL_GEQUAL, 0.5) can display the image where alpha >= 0.5.

Can opengl display the accumulation of alpha?

Example:

2 images, they will not display some part separately, because alpha < 0.5.

Now some of them overlap, their alpha sum to 0.6, how to display this overlap part?

I try to make a metaball example use opengl, if you have any idea, please please give me some hint.

Thank you so much

  • 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-09T12:21:50+00:00Added an answer on June 9, 2026 at 12:21 pm

    I would render the images to separate buffer (with Alpha Test off, and adding their alpha). Then, render the buffer onto the screen with Alpha Test.

    1. First, create an empty buffer and set it’s alpha to 0 for every pixel.
    2. Then, render all of your objects on said buffer, using your blend function on colors and adding alpha.
    3. Then, re-render the buffen on screen with Alpha Test turned on.

    And the answer to the “Can opengl display the accumulation of alpha ?” – yes. You can render alpha as grayscale, for example.

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

Sidebar

Related Questions

1 Can we do alpha test at Global? glEnable(GL_ALPHA_TEST); glAlphaFunc(GL_EQUAL, 0.7); Use these two
Can I have Stencil prepared with a texture (Image) in OpenGL 2.0 So that
Can anyone give some clues as to why when I try to render the
I just started working with OpenGL, but I ran into a problem after implementing
I'm drawing a texture mapped quad with a texture that has some transparent pixels
I've been playing around with OpenGL for a full week or equivalent. After 2D
Is it possible to achieve an transparency effect where fragments with alpha lower than
I'm making a game in lwjgl (java opengl) which contains a mesh of textured
In my next project, I'm trying to learn JOGL. The result should be a
I am trying to create a simple ray tracer. I have a perspective view

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.