Hi, I am reading the OpenGL book from Adisson & Wesley. I am trying to
decode the light examples from there, and from the GLUT distribution.
I am trying to draw a reflective green cube in a white light.
Whenever I turn on the lights, the cube goes grey.
I try using the examples from the opengl distribution, bu those simple
examples involve a sphere which comes from a quadric.
I do not know if my problems stem from:
normals, order of lighting, or lack of material properties,
(or maybe I am screwing up somewhere).
Could someone mail me a code fragment that puts up a simple reflective object
(drawn from primitives! so I can see the use of normals!), and
colors it, and lights it with a DIFFUSE light!
I try doing it myself but am lost amidst a sea of dead-ends and contradictions
based upon my misunderstanding.
Thanks if you can help,