hi! i m new to OGL world n i m having real trouble with colors! some of the times i save my models info in structures or classes including color info but when i set color using glColor() eg: glColor3fv(cube.clr); it seems to have no effect! n the model is simply drawn with previously selected color!! what is all this about? pls help!
-----------------------------------------------------------
Well! guies thanks for ur comments but actually there wasn't any problem. it only had to do with some bugs in my program! huh!
Edited by - aamishah on July 19, 2001 12:56:47 PM
Colorfull Mystery!
Started by aamishah, Jul 11 2001 12:13 PM
3 replies to this topic
Sponsor:
#3 Members - Reputation: 122
Posted 11 July 2001 - 10:50 PM
hello !
what primitives do you use ?
some primitives don't allow more then one color, in some cases, i think.
for more, you should post a code.
[edit]
ok,here i got it:
GL_POLYGON uses the first color that is specified.
(in the same glBegin()-glEnd() code).
well, i can't imagine that this is the problem
please post some code

Edited by - LittleTaz on July 12, 2001 6:07:02 AM
what primitives do you use ?
some primitives don't allow more then one color, in some cases, i think.
for more, you should post a code.
[edit]
ok,here i got it:
GL_POLYGON uses the first color that is specified.
(in the same glBegin()-glEnd() code).
well, i can't imagine that this is the problem
please post some code

Edited by - LittleTaz on July 12, 2001 6:07:02 AM






