The information in this article applies to:
SUMMARY
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.
MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: GLLT.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. GLLight allows you to experiment with all of the OpenGL lighting capabilities for a single-light scene quickly and easily. These characteristics fall into the following categories seen in the "Settings" dialog box:
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.
The material properties of the sphere are left as defaults except for a white Specular reflectance and a medium Shininess setting. You cannot modify the material properties through the UI in this sample. To demonstrate the effects of one-sided vs. two-sided lighting, there is an option to place a clipping plane through the sphere in order to uncover the inside of it. To see the difference between the inside and outside more clearly, you should move the light some distance along the x or y axes. REFERENCES
For more information on the above settings and OpenGL in general, please
read:
Additional query words: kbgraphic kbfile gllt.exe opengl
Keywords : kbfile kbgraphic kbNTOS351 kbNTOS400 kbWinOS2000 kbSDKWin32 kbWinOS95 GdiOpenGL kbGDIFAQ |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |