Jump to content
  • Advertisement

Archived

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

Jonus

GL_COLOR_MATERIAL

This topic is 5854 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

When i enable GL_COLOR_MATERIAL. Then i can't disable it later. Any ideas? I did something like that:
    
glEnable(GL_COLOR_MATERIAL);
drawQuads();
glDisable(GL_COLOR_MATERIAL);    
I must be able to color my quads, but some of them should be transparent to a certain degree. How would you do that? I have belending and lighting enabled thats the problem. I use textures too. [edited by - Jonus on September 15, 2002 9:48:37 AM]

Share this post


Link to post
Share on other sites
Advertisement
This is normal behaviour, when GL_COLOR_MATERIAL is enabled, glColor modifies the current material, and when when GL_COLOR_MATERIAL is disabled, the material ist still valid. You have to set the material color to it''s default color to "disable" it.

-Lev

Share this post


Link to post
Share on other sites
... i thought that might be the problem .

So i have to set the material to the default values after i disabled GL_COLOR_MATERIAL? Hmmmmm

[edited by - Jonus on September 15, 2002 11:11:03 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!