GL_POINTS all black coloured

hi, i got a short question

i got a star background but the GL_Point
did not color the “star” points…they are all black.
( gl.glColor3f ( 1.0f, 1.0f, 1.0f); is also not working)

what is wrong?


//Star Background	  
	  gl.glDisable(GL.GL_DEPTH_TEST);  
	  gl.glDisable(GL.GL_LIGHTING); 

gl.glPushMatrix();
	  
	  gl.glCullFace(GL.GL_BACK);
	  gl.glTranslatef(0,0,0);
              gl.glPointSize((float)2.0);

	  gl.glBegin(GL.GL_POINTS);
	  
	  for (i=0;i<8000;i++)
	  {

              gl.glColor4f (1.0f, 1.0f, 1.0f, 1.0f);
	  gl.glVertex3f(st_x[i],st_y[i],st_z[i]);
	 
	  }
	  gl.glEnd();
gl.glPopMatrix();
	  
	  

Hi,
are you sure that your camera / view settings are ok to see anything?

what are you lighting settings? ambient lights, diffuse, etc? What did you put in your init() or other methods?

try

gl.glBindTexture(GL.GL_TEXTURE_2D, 0);

before you set color, maybe you have a texture bound by mistake

good point…or disable textures just in case: gl.glDisable(GL.GL_TEXTURE_2D);