Specifying Materials
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
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
AMD Tbird 1GHz 266FSB, ASUS A7V133, Crucial 768MB PC133 SDRAM, PlexWriter 12X/10X/32X CD-RW, Voodoo3 2000 PCI, Creative SoundBlaster Live!, Maxtor 7200rpm 13.3GB, IBM 5200rpm 3.2GB, Samsung 955DF 19" Monitor, LinkSys USB100TX Ethernet Network Adapter,Rogers@Home, Win2000/Linux Mandrake 8.0
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement