Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Colorfull Mystery!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 aamishah   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 July 2001 - 12:13 PM

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

Sponsor:

#2 benjamin bunny   GDNet+   -  Reputation: 838

Like
Likes
Like

Posted 11 July 2001 - 02:53 PM

Can you post some code?

www.elf-stone.com

#3 LittleTaz   Members   -  Reputation: 122

Like
Likes
Like

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

#4 MButchers   Members   -  Reputation: 123

Like
Likes
Like

Posted 13 July 2001 - 04:12 AM

Hello there,

is lighting on? if it is then you need to change the
material not the color.

To do this enable GL_COLOR_MATERIAL and use the
glColorMaterial function.

Hope it helps

Mark.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS