   glBlendFunc - custom fonts
  hi there !im trying to create bitmap based font in GL.i copied the code from NeHe lesson 17 as follows, and it is working fine.  the bitmap im using is white fonts on black background - which create WHITE fonts.how can i create BLACK fonts ?thanks !   lior gl.glEnable( GL.GL_TEXTURE_2D );gl.glEnable( GL.GL_BLEND );gl.glBlendFunc( GL.GL_SRC_ALPHA, GL.GL_ONE );gl.glBindTexture( GL.GL_TEXTURE_2D, fontTextureID );gl.glColor3fv( WHITE );// fonts to screengl.glListBase( fontOffset - 32 + (128 * set) );gl.glCallLists( string.length(), GL.GL_BYTE, string.getBytes() ); 
  You will need to ensure that your font texture has an alpha channel (or add it when you load) so that white pixels have full alpha and black pixels have zero alpha.  Then you can do gl.glColor3fv(BLACK); and the font will be displayed in black.Enigma ;  Yes, you need an alpha channel.  It''s not very hard to add an alpha channel to an image from a greyscale alpha map.One thing you may want to try, is using the following blending -- not the additive one that NeHe uses most of the time.glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );You may also want to stop light and colour tracking for your font texture too:glDisable( GL_LIGHTING );glDisable( GL_COLOR_MATERIAL );   - Scott "me22" McMurray( email/MSN me22@fastmail.ca ICQ 37213887 ) ;  Alternatively, if you just want a black font you can skip the alpha channel altogether and just use:gl.glBlendFunc( GL.GL_ZERO, GL.GL_ONE_MINUS_SRC_COLOR );  Enigma 