PDA

View Full Version : glBlendFunc



mikethebike
12-16-2011, 04:28 AM
Hi
I've 2 images. Now without special the glpoint draw is alway on top. I only can see the below with transparency. alpha 0.5 works but doesn't look very good so I wonder how to put the below above the glpoint draw image. should be possible with glBlend? but I cannot figure the right settings. Now I use :
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
which only works with alpha transparenzy 0.5
Many thanks
Michael

ZbuffeR
12-16-2011, 05:19 AM
Draw the point further away in Z, until it is "below".
Or I did not understand what you want to do.

mikethebike
12-16-2011, 05:55 AM
No only 2D
I've found this but still haven't found the solution. I don't know which image is back or front...
http://www.andersriggelsen.dk/glblendfunc.php