Archive Pages Design$type=blogging

Spotlight's attenuation

Here we present another simple OpenGL Computer graphics C++ program. This is another spotlight pro...

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 proper look.
2. Ball and other objects can also be added in the program.
3. Light source should also move up and down, can foucs at many different angle.
4. Whole Program can be converted into 3D version.
Do write about the program, if you have something to add to it or alter the program or a new version do send us to openglprojects@gmail.com. We welcomes your feedback, do comments and write to us.

Download the Source Code!

COMMENTS

Name

3D Bi-Cycle 3D Game 3D Laptop 3D Objects 3D Projects 3D Zoo Algorithm Android Aquarium Bellman-Ford Algorithm Block Breaker Blockshooting Bucket Sort C# Chess Clock Code Blocks Colors Complex Project Complex Projects Crab Pong Cross Zero DSAV Escapa First Come First Serve Fluids Font Demo Games Gear Motion GlutDino Glutplane Graphics Editor iOS iPhone Java Java OpenGL Graphics Programming Light Torus Linked List Ludo Board Game Mancala board games Memory blocks game Memory Game Menu Mickey Mouse Minesweeper Miniature Steam Engine moth Motion Blur MoveLight moving car Moving Ship Multiplex Networking Based Project Nuclear Power Plant Olympic opengl c++ examples OpenGL ES OpenGL Tutorial Origami OS Based Projects Paint Paper Folding Particles Drop Path Finding ping pong Pong Game Project Report Projects Report Puzzles qix like Random Flowing lines Rigid Body Rings Robot sample c++ opengl code Screen Saver Screen Saver Ship Shadow Cube Shadowfun Ship Iceberg Simple Drawing Simple Haloed Lined Wireframe Simple Move Light Simple Project Simulation SNAKE XENZIA GAME Solar system Sorting Sphere Spot Light Swing Stars Taj Mahal The Edge Game Tic Tac Toe Tower of Hanoi Traffic Signal Transformation Triangular Animation Tutorial water ripple effects Whirlpool
false
ltr
item
OpenGL Projects: Spotlight's attenuation
Spotlight's attenuation
https://2.bp.blogspot.com/-kNyFizDJTdU/V2JHWygXXqI/AAAAAAAAH_o/YtFL3E3cPssei7JQ1I2evEPDUZPFYJIZQCLcB/s320/Spotlight%2527s%2Battenuation.PNG
https://2.bp.blogspot.com/-kNyFizDJTdU/V2JHWygXXqI/AAAAAAAAH_o/YtFL3E3cPssei7JQ1I2evEPDUZPFYJIZQCLcB/s72-c/Spotlight%2527s%2Battenuation.PNG
OpenGL Projects
http://www.openglprojects.in/2016/06/spotlight-attenuation.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2016/06/spotlight-attenuation.html
true
2020194800836807725
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago