• Advertisement

Archived

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

Specifying Materials

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

In my program, I haven''t specified any materials for my objects with GL_MATERIALS or whatever that is, but using a blue light, the whole scene goes darker with a nice bluish tint to it and with some fog, it looks kickass. So, do you guys know if OpenGL is using any default material properties coz , I am about to specify materials for the objects and don''t want to lose the light effect the scene currently has. Neo

Share this post


Link to post
Share on other sites
Advertisement

Here''s the defualt values from the red book!
Table 5-3 : Default Values for pname Parameter of glMaterial*()

Parameter Name Default Value Meaning
GL_AMBIENT (0.2, 0.2, 0.2, 1.0) ambient color of material

GL_DIFFUSE (0.8, 0.8, 0.8, 1.0) diffuse color of material

GL_AMBIENT_AND_DIFFUSE none ambient and diffuse color of material

GL_SPECULAR (0.0, 0.0, 0.0, 1.0) specular color of material

GL_SHININESS 0.0 specular exponent

GL_EMISSION (0.0, 0.0, 0.0, 1.0) emissive color of material

GL_COLOR_INDEXES (0,1,1) ambient, diffuse, and specular color indices

Share this post


Link to post
Share on other sites

  • Advertisement