Monday, May 9, 2011

Mini-Project on Spot Light Swing


Description: A simple light show where different lights are falling on different area and creating a very good scene the Spot Light Swing. This Program demos the use of swing and the different lightning functions. As Shown in the image this is light show coming from a point source. Just like in disco where lights fall from a point on the floor, also the changes the color.

Usages: Just run the program and you will get the light show running, lights with different colors on the floor. No interaction, if any one add in it please comment the code you added. 

Future Improvement in the Projects
  1. Add front end where all details are there and then enter this light show.
  2. In light show there should be start and stop options.
  3. Along with start and stop there should be option of increasing and decreasing the light.
  4. Basic color red, blue, green is used, other colors should also be included.

Project Code: Spot Light Swing OpenGL Free Source Code Download

19 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. i'm getting error like glutInit not included ........ after that i included even though i'm getting the problem

    ReplyDelete
  3. I think there is problem in the library that you need to place in the visual studio. Make the proper placement of the OpenGL files then you will get no error. 

    If you have an error even after that give a snapshot in the comment here.

    ReplyDelete
  4. for this program where i want to add codes for reduce the speed of the swing pls replay

    ReplyDelete
  5. sir do u have any modifications for this program,or any suggestions

    ReplyDelete
  6. can you pls specify the harware n software requirements for this ?

    ReplyDelete
  7. void
    animate(void)
    {
      spin += 0.5;
      if (spin > 360.0)
        spin -= 360.0;
      glutPostRedisplay();
    }

    here you change the value of spin and this will help in controlling the amount of spin thus speed.
    you can also add something in the program itself that allow user to control the speed as well as to stop and start it.

    ReplyDelete
  8. If you are a vtu student then you may having knowing the software requirements and there is no special hardware requirement.

    Well for non vtu, if you are here is requirements - 

    Software need : 

    MS Visual basic 
    Opengl library

    hardware : 

    any processor above pentinum 4
    os : windows (for linux other method is there, it may also run there)
    ram : 512 mb+

    ReplyDelete
  9. JestinefernaldoMay 2, 2012 at 9:44 PM

    which function is controlling the speed of rotation

    ReplyDelete
  10. look for aimLights,setLights , drawLights where rotate function can be alerted and also lookanimate where spin may play the role

    ReplyDelete
  11. pls send me the source code of 'boids in ogre 3d' to mons0612@gmail.com

    ReplyDelete
  12. How to make the code just for one light? What changes needed to be done?

    ReplyDelete
  13. i am geetng 37 errors

    ReplyDelete
  14. PLEAZ SEND ME CODE FOR THIS PROJECT

    ReplyDelete
  15. exactly tell me how to reduce the rotation speed. pls

    ReplyDelete