View Full Version : how do u create lighting/normals for glut objects

05-24-2011, 11:09 PM
I created a terrain with lighting. i calculated all the normals individually for the vertices. But how do I go about getting light to work/reflect for objects created using the glut functions like glutSolidSphere, gluteSolidCube etc.?

They seem to be just one bright color and show no shades of light.

05-25-2011, 12:16 AM
Glut functions do specify normals so I suspect you are not lighting the scene correctly. Could u tell us how u r setting your lighting?