GLLT.EXE Demonstrates Simple Lighting in OpenGLID: Q152001
|
The GLLight sample provides a demonstration of how the various light
settings effect an OpenGL scene. The initial scene is simply a single white
sphere with a single blue light (GL_LIGHT0) shining on it.
You can modify all of the properties of that light as well as the light
model characteristics for the scene to observe the visual effect. GLLight
does not use multiple lights and does not allow you to change the material
properties of the sphere.
The following file is available for download from the Microsoft Software Library:
~ GLLT.EXEFor additional information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
Characteristics of the Light Source (GL_LIGHT0):
Position
Intensity (ambient, diffuse, specular)
Spotlight Properties (exponent, cutoff)
Attenuation (constant, linear, quadratic)
Characteristics of the Lighting Model:
Global ambient light
Viewpoint (local or infinite)
Lighting (one-sided or two-sided)
The initial settings for these characteristics follow the defaults for
GL_LIGHT0 with two exceptions: the Position is moved back so as to light
the sphere; and the Diffuse Intensity is set to blue.
For more information on the above settings and OpenGL in general, please
read:
-Neider, Jackie, Tom Davis, and Mason Woo. OpenGL Programming Guide: The
Official Guide to Learning OpenGL, Release 1. Reading, MA: Addison-Wesley,
ISBN 0-201-63274-8. (This book is also known as the "Red Book".)
For information on Material Properties in OpenGL, please see: The GLBMP
Sample "Demonstration of OpenGL Material Property and Printing" in the
Microsoft Software Library, and the "Red Book" mentioned above.
Additional query words: kbgraphic kbfile gllt.exe opengl
Keywords : kbfile kbgraphic kbNTOS351 kbNTOS400 kbSDKWin32 kbWinOS95 GdiOpenGL
Version : WINDOWS:95,98
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: June 15, 1999