Hi there. I'm new to OpenGL and I'm having some difficulties with the blending of drawn objects. I have read much resources around the internet but so far nothing helps. I'm just trying to enable simple blend with no sorting of objects.
Here is what I'm doing to reach the result of the attached picture :
i call :
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glDepthMask( GL_FALSE );
//draw transparent objects
glDepthMask( GL_TRUE);
glDisable( GL_BLEND );
On this picture the purple figure have to be blended but it is not. It goes through the silver box, however the color is not blended, but only the color of the box is shown. The alpha factor is 0.1f.