Log in

View Full Version : Alpha Blending Primitives ?



Abened
10-09-2003, 08:13 PM
Hi again, i'd like to know i could draw a cylinder and a disk with alpha blending (so they would be transparent). I tried after binding a texture to use GLXDraw.UseColor(R,G,B,A) but changing the Alpha values does not seems to work. Is there a way to do this using GLXTreem (or perhaps plain OpenGl ?) ??

Thanks in advance ! Viva GLXTreem :D

Andreaz
11-09-2003, 10:21 AM
You'll have to enable blending first, havn't any wrapper for that in glxtreem yet:

glEnable(GL_BLEND);
glBlendFunct(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

GLXDraw.UseColor(R,G,B,A)

// Render primitives.

Abened
11-09-2003, 04:21 PM
Thank you AndreasL it works just fine :)