How to make shading effect with OpenGL?

i just want to do something follows:
there is a light source,an object,and i
need draw a projection of the object on
a plane.
what should i do?

You should look at this source code .

– Zeno

There is also a few examples here
http://www.cs.unc.edu/~hoff/projects/summer98_disney_lighting_effects/docs/