• Advertisement

Archived

This topic is now archived and is closed to further replies.

gluQuaric, color, lightning

This topic is 5469 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to use colors and lightning with gluQuadrics? I can''t seem to make them both available at the same time - it''s either the color or the lightning which works. Any ideas? --- Quite soon... ICQ: 163187735

Share this post


Link to post
Share on other sites
Advertisement
When lighting is enabled, the color is calculated from the lighting equation and the material properties. You set material properties with glMaterial. Or if you want, you can let some material properties track the color set by glColor, in which case you can have a look at glColorMaterial.

Share this post


Link to post
Share on other sites

  • Advertisement