Archive Pages Design$type=blogging

Computer Graphics Mini-Project Simple Move Light

Description:  Example program illustrating a simple use  of lighting.  Creates six spheres of d...

SimpleLight


Description: Example program illustrating a simple use of lighting.  Creates six spheres of different fully saturated colors. Adds a white light that slow rotates around the spheres.

USAGE: Press "r" key to toggle (off and on) running the animation
               Press "s" key to single-step animation.
              The up arrow key and down array key control the time step used in the animation rate.  This will speed up or slow down the rate at which the light revolves around the spheres.
        Press ESCAPE to exit.


       This lighting model is build on the basis of phong model,Which supports three types of light material interactions namely Specular, ambient, diffuse. The ambient source color represents the interaction of a light source with surface whereas the specular source color is designed to produce the desired color of a specular highlights.
     Lighting model is built by summing the contributions for all the light sources at each point we wish to light. For each light source, have to compute the amount of light reflected for each of the nine terms in the illumination array. The contribution can be computed for each color source by adding the ambient, diffuse, specular components.
       There are four vector parameters that can set, the position of light source and amount of ambient, diffuse, specular Light associated with the source.  Both lighting should be enabled and particular source. When small amount of white light is needed, even when all light sources are turned off or disabled  following code can be used.
Glfloat global_ambient[]={0.1,0.1,0.1,0.1};

glLightModelfv(GL_LIGHT_MODEL_AMBIENT,global_ambient);


Future scope
Ø  It is the basic model of Simple Move Light
Ø  It will be used in the fields of animation.

Ø  In future this program can be improved by using of new opengl functions.

Computer Graphics Mini-Project Free Source Code Download 

We are giving the Computer Graphics Mini-Project free source code download. To help other students we need your help as well. Kindly if you modify this projects or any other kindly post email or post the projects code to help future students.

Project Code: Download
Header File: Download



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: Computer Graphics Mini-Project Simple Move Light
Computer Graphics Mini-Project Simple Move Light
http://4.bp.blogspot.com/-ZC6KeJDkBQA/TcbLVIKvQoI/AAAAAAAAAlA/zbwnGzGiPiI/s400/Simple+Move+Light1.png
http://4.bp.blogspot.com/-ZC6KeJDkBQA/TcbLVIKvQoI/AAAAAAAAAlA/zbwnGzGiPiI/s72-c/Simple+Move+Light1.png
OpenGL Projects
http://www.openglprojects.in/2011/05/simple-move-light.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2011/05/simple-move-light.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