Microfunguy
09-14-2003, 01:29 AM
In a previous post http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/013930.html I asked how I could render a bitmap with 'transparent' areas over an image already rendered to a quad.
As no-one knew the answer, can I put the question a different way ?
As soon as the first image is rendered to the quad, does it exist in the frame-buffer ?
When I then enable blending and set glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA) and render the second image with 'transparent' areas to a quad in exactly the same position, it merely overwrites it.
Is blending only applied to these mysterious 'fragments' and what are the fragments in this situation ?
Thanks,
David Sykes
As no-one knew the answer, can I put the question a different way ?
As soon as the first image is rendered to the quad, does it exist in the frame-buffer ?
When I then enable blending and set glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA) and render the second image with 'transparent' areas to a quad in exactly the same position, it merely overwrites it.
Is blending only applied to these mysterious 'fragments' and what are the fragments in this situation ?
Thanks,
David Sykes