Archive Pages Design$type=blogging

Light Torus : Animating Lights over the objects

Description:  Program to demonstrate how to add lighting  and material properties to a torus.Th...


torus

Description: Program to demonstrate how to add lighting and material properties to a torus.This program extends the program Wrap Torus.  The triangles or quadrilaterals are wrapped around the torus in a single long strip.


USAGES: There are a number of keyboard commands that control the animation.  They must be typed into the graphics window, and are listed below

   CONTROLLING RESOLUTION OF THE TORUS MESH

     Press "W" to increase the number wraps.
     Press "w" to decrease the number wraps.
     Press "N" to increase the number of segments per wrap.
     Press "n" to decrease the number of segments per wrap.
     Press "q" to toggle between quadrangles and triangles.
   
   CONTROLLING THE ANIMATION:

     Press the "a" key to toggle the animation off and on.
     Press the "s" key to perform a single step of the animation.
     The left and right arrow keys controls the rate of rotation around the y-axis.
     The up and down arrow keys increase and decrease the rate of rotation around the x-axis.
     In order to reverse rotational direction you must zero or reset the torus ("0" or "r").
     Press the "r" key to reset the torus back to initial position, with no rotation.
     Press "0" (zero) to zero the rotation rates.

   CONTROLLING LIGHTS:


     Press '1' or '2' to toggle the first or second light off and on.
     Press 'f' to toggle between flat and smooth shading.
     Press 'l' to toggle local modes on and off (local viewer and positional light,or non-local viewer and directional light).

   COMMANDS SHOWING OPENGL FEATURES:


     Pressing "p" toggles between wireframe and polygon mode.
     Pressing "f" key toggles between flat and smooth shading.


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: Light Torus : Animating Lights over the objects
Light Torus : Animating Lights over the objects
http://4.bp.blogspot.com/-ygmETx3JHGQ/Tjhj0N7nhhI/AAAAAAAAAsw/eOSzcsoxsRk/s400/Light+torus.PNG
http://4.bp.blogspot.com/-ygmETx3JHGQ/Tjhj0N7nhhI/AAAAAAAAAsw/eOSzcsoxsRk/s72-c/Light+torus.PNG
OpenGL Projects
http://www.openglprojects.in/2011/08/light-torus.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2011/08/light-torus.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