   Can't Set Black Color in OpenGL
  hi All,This seems quite straight forward but i don't know how to do it.if i have to set background color like following glClearColor (0.3f, 0.3f, 0.3f, 1.0f);// Dark Grey ColorglClear (GL_COLOR_BUFFER_BIT);now if i call any primitive with black color like this.glColor3f (0.0f, 0.0f, 0.0f);// Draw Primitives in this colorthis (0,0,0) always gives me the background color NOT Black.. how can i draw anything with black color on this background.. how can i set black color in this case?   
  Never Mind :)glEnable(GL_BLEND);glBlendFunc(GL_ONE,GL_SRC_ALPHA);Blending was on   ;  Good that you fixed your issue =P But there's something I don't understand. See:glColor3f(0.0f, 0.0f, 0.0f);is basically the same asglColor4f(0.0f, 0.0f, 0.0f, 1.0f);So what blending mode were you using? Additive?   ;Quote:Original post by Sik_the_hedgehogGood that you fixed your issue =P But there's something I don't understand. See:*** Source Snippet Removed ***is basically the same as*** Source Snippet Removed ***So what blending mode were you using? Additive?glBlendFunc(GL_ONE,GL_SRC_ALPHA);   