DirectAnimation Animated Header --L DirectAnimation Animated Header --L* Microsoft DirectAnimation SDK
*Index  *Topic Contents
*Previous Topic: I
*Next Topic: O

L


light
Computer displays use additive light. Additive light is created by combining red, green, and blue light components, in some proportion. White light is created from equal parts of red, green, and blue light. Intensity is the brightness of the light. Attenuation is the decrease in light intensity over distance.

There are two basic kinds of light: ambient light and source light. Ambient light determines the general illumination of a scene. Source light comes from a light source. There are three kinds of source light: point sources (light radiates in all directions from a point source), spotlight sources (light radiates in a specified cone from a point source), and directional light (light rays arrive in the scene parallel to each other, which mimics the light from a very distant source).

In DirectAnimation, ambient light, directional light, and point light are available as DAGeometry.ambientLight (or Java GeometryBvr.ambientLight), DAGeometry.DirectionalLight (or Java GeometryBvr.directionalLight), and DAGeometry.PointLight (or Java GeometryBvr.pointLight).

Diffuse light is light that scatters from rough surfaces in all directions. Depending on the object's material, it can reflect and diffuse incoming light in varying degrees. In DirectAnimation, diffuse light characteristics are set with the DAGeometry.DiffuseColor function (or Java GeometryBvr.diffuseColor method).

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page