Create Multiple instances of Stars

Rajeev

Description : Program to demonstrate the use of display lists: loads a shape using display lists then calls several instances. Also demonstrates the use of glutIdleFunc to animate the shapes.
 This program uses display lists to create multiple instances of a single object. The object used here is Star. Stars are created using the polygons with different points, which can be alerted.  The multiple instances of stars are called with the number of stars which too can be changed.

usages :
Mouse interaction

Right mouse button: Speed up the animation.
Middle mouse button: Slow down the animation.
Left mouse button: Reset to the default speed.

Keyboard interaction 


r: Speed up the animation.
t: Slow down the animation.
y: Reset to the default speed.
q: quit program.

Video demo


Download : Project code*

* If you have edited something, modified the program discuss about.

15 comments

  1. Shreyas Hemachandran
    cant download the code.. how to download?
  2. Rajeev Kumar Singh
    There is download link provide, skip the ads after 5 sec at top right and download at the top the option is there.
  3. Shashi
    The code is not giving the output as like you are presenting the Video. Please post the code for it.
  4. Rajeev Kumar Singh
    It likely shame but you not getting why? I don't know whatever code is posted is tested as shown in video.
  5. sarah
    sir can u please mail the source code.. mail id is sarah_angel1981@gmail.com. that download link is not working
  6. Rajeev Kumar Singh
    YOUR EMAIL ID IS GIVING FALIURE NOTICE SO TRY TO GET IT FROM HERE OR ASK OTHER USERS
  7. pooh
    sir can u mail to my other mail sowmyadevanga99@gmail.com
  8. Shivu
    sir can u mail me code with comments
  9. sujata saha
    sir can i have the abstract of multiple instance of star plz
  10. vikash
    can u send code on my email vknasriganj@gmail.com
  11. Akshay
    Hello sir,i need the detail explanation of the multiple star instances function by function for ex-in the draw star functn y we using m_pi or rotatng by 2.0......i have tried out the variations but not getting a clear idea.....can u plz send me a documentary explanation for the code of multiple instances so that it can be easy to understand.......my mail id is akshaykhanna6592@gmail.com
  12. Mohammed Adnan
    do u have the report for this project??
    If so, pls send to it to adnan0316@gmail.com
  13. Shabina Begum
    helo sir, can u plz send me the full code of dis project.?? my mail id shabinabegum@yahoo.com
  14. Anand
    do u have the report for this project??
    please send it on anand18k@hotmail.com
  15. Twinkle
    Sir please send the code in my email: twinkledas086@gmail.com

Join the conversation