[gameprogrammer] Re: openglHow

Hi there,

You need to run:

glEnable(GL_BLEND);

You should also specify the way OpenGL will perform the blending:

Try:

glBlendFunc(GL_SRC_COLOR, GL_ONE);
 or
glBlendFunc(GL_SRC_ALPHA, GL_ONE);

Your ALPHA value in glColor4f will specify how Opaque your poly is.
0.0fwill be invisible and
1.0f will not be transparent.  There are lots of different options for
glBlendFunc that act differently.  Also, having lighting enabled will affect
how the blending interprets your alpha values.

Regards
Richard


On 26/04/07, Yasser Gonzalez <yassergs@xxxxxxxxxxxxxxx> wrote:

When I use glColor4f function how I make tranarent shapes???

The alpha parameter must greater than 0 or less????


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html



Other related posts: