Posts

Spotlight's attenuation

Rajeev
Spotlight's attenuation
Here we present another simple OpenGL Computer graphics C++ program. This is another spotlight program as previouly we have seen Spotlight swing. The program is similar but with a twist. Description of the Spotlight's attenuation : This program draws an array of spheres lit by a spotlight whose cone angle can be changed and which can be moved as well. The spotlight cone is shown by a wireframe. The spheres are colored using color material mode. Interaction in Spotlight's attenuation: Press the page up/down keys to increase/decrease the spotlight cone angle. Press the arrow keys to move the spotlight. Press 't/T' to decrease/increase the spotlight's attenuation. Simple words we have so many balls of different colors lying on surface. There is a light source. We can move the light source and also able to decrease the diameter of the source with some keyboard interaction. Future Enhancement of the Program : 1. We can remove the wire frame as light and give it a prope…

Post a Comment