[PyOpenGL-Users] opaque polygons
Brought to you by:
mcfletch
From: Astan C. <st...@al...> - 2008-04-08 05:03:44
|
Hi, Im trying to make this: green = (( 0.0, 1.0, 0.0, 1 )) glColor4f( 0, 1, 0, .1 ) glBegin( GL_POLYGON ) glMaterialfv( GL_FRONT, GL_EMISSION, green ) rad = 0.5 for i in xrange(0,360,5): glVertex3f(x1+math.sin(i*math.pi/180.0)*rad , y1+math.cos(i*math.pi/180.0)*rad,z1) glEnd( ) to be opaque. I read that the last part of glColor4f() allows alpha channels for transparency levels. I changed it and it still remains solid. What am I doing wrong? Thanks again for any help. Cheers Astan -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |