PDA

View Full Version : Stupid question



c0d3Junk3Y
08-01-2003, 07:57 AM
It's hot out today so I'm lazy. Don't wanna search take your pick. Anyway anyone know the glColor3f(); for white?

nexusone
08-01-2003, 08:08 AM
Must have been just as lazy in school during science class...

glColor3f( Red, Blue, Green )

Red + Blue + Green = White

1, 1, 1



Originally posted by c0d3Junk3Y:
It's hot out today so I'm lazy. Don't wanna search take your pick. Anyway anyone know the glColor3f(); for white?

c0d3Junk3Y
08-03-2003, 02:42 AM
Sorry I didn't specify background color.

john
08-03-2003, 02:55 AM
wtf?

oh... you wanted white for the background colour. that's not the same as white for the foreground colour, as you keenly observed. to convert any foreground colour into a background colour you just need to subtract 1.0 from the colour values. so, the background colour for white is 0.0, 0.0, 0.0 (1.0-1.0, 1.0-1.0, 1.0-1.0). beginners often stumble over this problem.

c0d3Junk3Y
08-03-2003, 03:15 AM
LOL We oft stumble over more than just that.

nexusone
08-03-2003, 09:00 AM
You can set the color in which to clear to.

// R, G, B, A
glClearColor (1.0, 1.0, 1.0, 1.0);


Originally posted by c0d3Junk3Y:
Sorry I didn't specify background color.

El_Segador
08-03-2003, 04:42 PM
No questions are stupid, when you don't know you don't know.
There are just hard questions and easier questions.

john
08-03-2003, 11:34 PM
... or, my personal favourite:
http://www.thinkgeek.com/images/products/zoom/cluelessness.jpg

:-) (not that I'm saying its applicable in this case, mind you)

c0d3Junk3Y
08-04-2003, 04:32 AM
Thanks john LOL. BTW love the pic.

Deiussum
08-04-2003, 04:54 AM
Originally posted by john:
wtf?

oh... you wanted white for the background colour. that's not the same as white for the foreground colour, as you keenly observed. to convert any foreground colour into a background colour you just need to subtract 1.0 from the colour values. so, the background colour for white is 0.0, 0.0, 0.0 (1.0-1.0, 1.0-1.0, 1.0-1.0). beginners often stumble over this problem.


LOL! Nice response John. http://www.opengl.org/discussion_boards/ubb/smile.gif

Orzech
08-04-2003, 04:58 AM
In my country we say :
There are no stupid questions.
There are only stupid answers.

http://www.opengl.org/discussion_boards/ubb/smile.gif

Jan
08-04-2003, 05:08 AM
This phrase must have been invented by the most stupid and annoying person on this planet.

Orzech
08-04-2003, 05:11 AM
What do you say so?

Jan
08-04-2003, 06:40 AM
Originally posted by Orzech:
What do you say so?

In Germany we have the same phrase.
I hate it.

Jan.

Orzech
08-04-2003, 07:36 AM
Aha. http://www.opengl.org/discussion_boards/ubb/smile.gif