[gameprogrammer] Re: openglHow
- From: "richard sabbarton" <richard.sabbarton@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Thu, 26 Apr 2007 16:03:59 +0100
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
- References:
- [gameprogrammer] Re: openglHow
- From: Yasser Gonzalez
Other related posts:
- » [gameprogrammer] Re: openglHow
- » [gameprogrammer] Re: openglHow
- » [gameprogrammer] Re: openglHow
- » [gameprogrammer] Re: openglHow
- » [gameprogrammer] Re: openglHow
- » [gameprogrammer] Re: openglHow
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
- [gameprogrammer] Re: openglHow
- From: Yasser Gonzalez