PDA

View Full Version : Crazy glColor problem



ribblem
12-06-2000, 07:49 PM
I'm setup all the framework for an openGL program and I've got this crazy problem. Take a look at the following lines:

glBegin(GL_TRIANGLES);
glColor3f(1.0f,1.0f,1.0f);
glVertex2f(0,0);
glVertex2f(50,0);
glVertex2f(0,50);
glEnd();

That's as simple as it gets but for some reason my triangle is a very dark green. I don't get it. Why isn't it white? I tried changing the color to a darker color and I can make the triangle black, I just can't get it to be any brighter than dark green.

Has anyone seen anything like this?

zed
12-06-2000, 08:19 PM
stick this in front
glDisable(GL_LIGHTING);
glDisable(GL_TEXTURE_2D);

ribblem
12-06-2000, 08:22 PM
Thanks,

I didn't think I had enabled textures anywhere but I did. Stupid me.