Title | Previous | Next

lightsrc

Define lighting source properties for 3D plots.

Synopsis:

lightsrc lightsrc_id [ on | off ]

lightsrc lightsrc_id [ on | off ] ambient color

lightsrc lightsrc_id [ on | off ] directional color direction

lightsrc lightsrc_id [ on | off ] eye color [direction]

Arguments:

lightsrc_id

An integer ranging from 1 to 8 denoting which light source to define.

on

This specifies that the light source should be activated.

off

This specifies that the light source should be deactivated.

ambient

This light source type has no direction.

directional

This is a light source that stays fixed to the model.

eye

This is a light source that stays fixed to the viewer.

color

This can be either a color name Color Names or a red, green, blue triple.

direction

This is an x, y, z triple describing the direction in which the light source is facing.

Description:

Define light source properties for 3D plots. There are two lights (numbers 1 and 2) set by default. They are both directional and are facing <1.4, 1.0, 0.7> and <-1.4, -1.0, -0.7>. Both are white lights.

An ambient light is used to provide a background level of illumination so that unlit areas are not completely black. A directional light will always shine on the same spot on the model. An eye light is one which is fixed relative to the viewer's (window's) position in space. When no direction is specified for an eye light, it defaults to <0 0 -1>, which is directly into the screen.

Examples:

lightsrc 1 ambient 0.2 0.2 0.2

lightsrc 5 on

lightsrc 6 on directional white 1 0 0

lightsrc 7 directional 0.7 0.7 0.7 -1 0 0

See Also:

autoscale , colordef


Title | Previous | Next

MeshTV@viper.llnl.gov
Copyright © 1998, U.S. Department of Energy. All rights reserved.