Description: This program demonstrates a light source and object of arbitrary geometry ca...
This program demonstrates a light source and object of arbitrary geometrycasing a shadow on arbitrary geometry. The program uses OpenGL's feedback, stencil, and boundary tessellation support.
In other word it poses shadow of the different objects selected over the walls. There are two views in which one is normal say our eyes and other the object's eye. It look cool when you choose the object eye to view. Keeping the lights on/off make the things more delicate. There are many other things that is included in this with vast amount of understanding to implement those.
Usages: Right click to see the options
Object shape : Selects the below objects with sub-menu selection
Normal view : Normal Display
Light source view : Display as from the eyes of the objects (light source).
Render mode :
With shadow : Shadow view on/off
With front shadow volume : Only Front shadow
With back shadow volume : Only Back shadow
Without shadow : No shadow
Without light : Light on/off
2D shadow boundary : 2d shadow boundaries.
Spin object : Spin the objects.
Swing light : Swing the lights.
Stop : Stop
Step rotate : increment the steps of movement.
Quit : Exit Program.
Download : Project code
Those who want to works it on the Linux or Unix can compiles the code as below :
cc -o shadowfun shadowfun.c -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm
make sure you have OpenGl libray in the file system, if not get installed it.