Shadowfun : Program to make fun with shadow of different objects

Rajeev




Description:  
This program demonstrates a light source and object of arbitrary geometry 
casing 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
                           Torus
                           Cube
                           Sphere
                           Icosahedron
                           Double Torus
  Viewpoint :
                           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.
  Action :
                  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.

8 comments

  1. Student
    Sir there's no link directing to the project code!
  2. Rajeev Kumar Singh
    ok it has been corrected
  3. Missvedap
    were can i find this project explanation in detail..... pls help me soon i need it
  4. s1234
    sir the shadow is not working when executed in microsoft visual c++,can you pls ckeck it
  5. sandi
    sir please i badly need a detailed explanation of the code
  6. sandi
    sir i need a detailed explanation of this code ,wer can i find it
  7. HAFSA
    can i get the source code of this project "shadow fun"... urgently i'm in need
  8. pavana shree
    sir can u pls send me the report of this project its needy.....pavanashreecp31@gmail.com

Join the conversation