Lighting is a technique for adding realism to a graphical scene. It does this by simulating the highlights and dark areas that occur on objects under natural lighting (e.g., the directional light that comes from the sun). To create lighting effects, MATLAB defines a graphics object called a light. MATLAB applies lighting to surface and patch objects.
These examples illustrate the use of lighting in a visualization context.
sincfunction examples illustrate this technique. See "Example -- Isosurfaces in Fluid Flow Data" in Volume Visualization Techniques and "Visualizing Functions of Two Variables" in Creating 3-D Graphs in the Using MATLAB Graphics documentation.
|Lighting as a Visualization Tool||Lighting Commands|
© 1994-2005 The MathWorks, Inc.